137 constexpr units::radian_t
Radians()
const {
return m_value; }
145 constexpr units::degree_t
Degrees()
const {
return m_value; }
152 constexpr double Cos()
const {
return m_cos; }
159 constexpr double Sin()
const {
return m_sin; }
166 constexpr double Tan()
const {
return Sin() / Cos(); }
169 units::radian_t m_value = 0_rad;
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 2D coordinate frame represented by a point on the unit circle (cosine and sine).
Definition: Rotation2d.h:26
constexpr double Tan() const
Returns the tangent of the rotation.
Definition: Rotation2d.h:166
constexpr units::degree_t Degrees() const
Returns the degree value of the rotation.
Definition: Rotation2d.h:145
constexpr double Cos() const
Returns the cosine of the rotation.
Definition: Rotation2d.h:152
constexpr Rotation2d()=default
Constructs a Rotation2d with a default angle of 0 degrees.
constexpr double Sin() const
Returns the sine of the rotation.
Definition: Rotation2d.h:159
constexpr units::radian_t Radians() const
Returns the radian value of the rotation.
Definition: Rotation2d.h:137
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)
bool operator==(const Value &lhs, const Value &rhs)
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