42 constexpr Translation3d(units::meter_t x, units::meter_t
y, units::meter_t z);
70 constexpr units::meter_t
X()
const {
return m_x; }
77 constexpr units::meter_t
Y()
const {
return m_y; }
84 constexpr units::meter_t
Z()
const {
return m_z; }
91 units::meter_t
Norm()
const;
176 units::meter_t m_x = 0_m;
177 units::meter_t m_y = 0_m;
178 units::meter_t m_z = 0_m;
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const CwiseBinaryOp< internal::scalar_quotient_op< Scalar, typename OtherDerived::Scalar >, const Derived, const OtherDerived > operator/(const EIGEN_CURRENT_STORAGE_BASE_CLASS< OtherDerived > &other) const
Definition: ArrayCwiseBinaryOps.h:21
EIGEN_DEVICE_FUNC const NegativeReturnType operator-() const
Definition: CommonCwiseUnaryOps.h:45
#define WPILIB_DLLEXPORT
Definition: SymbolExports.h:36
A rotation in a 3D coordinate frame represented by a quaternion.
Definition: Rotation3d.h:23
Represents a translation in 2D space.
Definition: Translation2d.h:29
Represents a translation in 3D space.
Definition: Translation3d.h:27
bool operator==(const Translation3d &other) const
Checks equality between this Translation3d and another object.
constexpr units::meter_t Y() const
Returns the Y component of the translation.
Definition: Translation3d.h:77
constexpr units::meter_t X() const
Returns the X component of the translation.
Definition: Translation3d.h:70
Translation3d(units::meter_t distance, const Rotation3d &angle)
Constructs a Translation3d with the provided distance and angle.
constexpr units::meter_t Z() const
Returns the Z component of the translation.
Definition: Translation3d.h:84
units::meter_t Norm() const
Returns the norm, or distance from the origin to the translation.
constexpr Translation3d()=default
Constructs a Translation3d with X, Y, and Z components equal to zero.
Translation3d RotateBy(const Rotation3d &other) const
Applies a rotation to the translation in 3D space.
units::meter_t Distance(const Translation3d &other) const
Calculates the distance between two translations in 3D space.
a class to store JSON values
Definition: json.h:2655
const Scalar & y
Definition: MathFunctions.h:821
Definition: AprilTagFieldLayout.h:22
WPILIB_DLLEXPORT void from_json(const wpi::json &json, AprilTagFieldLayout &layout)
WPILIB_DLLEXPORT void to_json(wpi::json &json, const AprilTagFieldLayout &layout)
unit< std::ratio< 1 >, units::category::scalar_unit > scalar
Definition: base.h:2510
constexpr unit_t< Units, T, NonLinearScale > operator+(const unit_t< Units, T, NonLinearScale > &u) noexcept
Definition: base.h:2328
/file This file defines the SmallVector class.
Definition: AprilTagFieldLayout.h:18