From 62f07c182cc038cf40cd93daed06a0da677be9b9 Mon Sep 17 00:00:00 2001 From: Tyler Veness Date: Sun, 8 Sep 2019 11:15:07 -0700 Subject: [PATCH] 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. --- wpilibc/src/main/native/include/frc/geometry/Rotation2d.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpilibc/src/main/native/include/frc/geometry/Rotation2d.h b/wpilibc/src/main/native/include/frc/geometry/Rotation2d.h index 58059a62d5..37bc295c30 100644 --- a/wpilibc/src/main/native/include/frc/geometry/Rotation2d.h +++ b/wpilibc/src/main/native/include/frc/geometry/Rotation2d.h @@ -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)