mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Make one-arg Rotation2d constructor implicit (#1883)
Since a value in radians is always a rotation, it makes sense to provide an implicit constructor for this for convenience with Pose2d's constructor.
This commit is contained in:
committed by
Peter Johnson
parent
f405582f86
commit
62f07c182c
@@ -28,7 +28,7 @@ class Rotation2d {
|
||||
*
|
||||
* @param value The value of the angle in radians.
|
||||
*/
|
||||
explicit Rotation2d(units::radian_t value);
|
||||
Rotation2d(units::radian_t value); // NOLINT(runtime/explicit)
|
||||
|
||||
/**
|
||||
* Constructs a Rotation2d with the given x and y (cosine and sine)
|
||||
|
||||
Reference in New Issue
Block a user