13 static constexpr std::string_view
GetTypeName() {
return "Rotation2d"; }
14 static constexpr size_t GetSize() {
return 8; }
15 static constexpr std::string_view
GetSchema() {
return "double value"; }
#define WPILIB_DLLEXPORT
Definition SymbolExports.hpp:36
A rotation in a 2D coordinate frame represented by a point on the unit circle (cosine and sine).
Definition Rotation2d.hpp:26
Specifies that a type is capable of raw struct serialization and deserialization.
Definition Struct.hpp:69
Definition CvSource.hpp:15
static constexpr size_t GetSize()
Definition Rotation2dStruct.hpp:14
static void Pack(std::span< uint8_t > data, const wpi::math::Rotation2d &value)
static constexpr std::string_view GetTypeName()
Definition Rotation2dStruct.hpp:13
static constexpr std::string_view GetSchema()
Definition Rotation2dStruct.hpp:15
static wpi::math::Rotation2d Unpack(std::span< const uint8_t > data)
Struct serialization template.
Definition Struct.hpp:39