mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
SCRIPT: wpiformat
This commit is contained in:
committed by
Peter Johnson
parent
ae6bdc9d25
commit
2109161534
@@ -37,7 +37,8 @@ class WPILIB_DLLEXPORT Rotation2d {
|
||||
*/
|
||||
constexpr Rotation2d(wpi::units::angle_unit auto value) // NOLINT
|
||||
: m_cos{gcem::cos(value.template convert<wpi::units::radian>().value())},
|
||||
m_sin{gcem::sin(value.template convert<wpi::units::radian>().value())} {}
|
||||
m_sin{gcem::sin(value.template convert<wpi::units::radian>().value())} {
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a Rotation2d with the given x and y (cosine and sine)
|
||||
|
||||
Reference in New Issue
Block a user