25 units::meter_t dx = 0_m;
30 units::meter_t dy = 0_m;
35 units::radian_t dtheta = 0_rad;
56 return Twist2d{dx * factor, dy * factor, dtheta * factor};
#define WPILIB_DLLEXPORT
Definition: SymbolExports.h:36
UnitType abs(const UnitType x) noexcept
Compute absolute value.
Definition: math.h:721
Definition: AprilTagFieldLayout.h:22
A change in distance along a 2D arc since the last pose update.
Definition: Twist2d.h:21
units::meter_t dy
Linear "dy" component.
Definition: Twist2d.h:30
constexpr Twist2d operator*(double factor) const
Scale this by a given factor.
Definition: Twist2d.h:55
units::meter_t dx
Linear "dx" component.
Definition: Twist2d.h:25
units::radian_t dtheta
Angular "dtheta" component (radians)
Definition: Twist2d.h:35
bool operator==(const Twist2d &other) const
Checks equality between this Twist2d and another object.
Definition: Twist2d.h:43