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:
Tyler Veness
2019-09-08 11:15:07 -07:00
committed by Peter Johnson
parent f405582f86
commit 62f07c182c

View File

@@ -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)