From ba0dccaae46878187f6df77d44e1cae15c2d0c3f Mon Sep 17 00:00:00 2001 From: Tyler Veness Date: Sun, 20 Mar 2022 21:57:03 -0700 Subject: [PATCH] [wpimath] Fix reference to Rotation2d.fromRadians() (#4118) Rotation2d.fromRadians() doesn't exist. The constructor should be used instead. --- .../src/main/java/edu/wpi/first/math/geometry/Rotation2d.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wpimath/src/main/java/edu/wpi/first/math/geometry/Rotation2d.java b/wpimath/src/main/java/edu/wpi/first/math/geometry/Rotation2d.java index 8eed76cd18..838a8310c7 100644 --- a/wpimath/src/main/java/edu/wpi/first/math/geometry/Rotation2d.java +++ b/wpimath/src/main/java/edu/wpi/first/math/geometry/Rotation2d.java @@ -71,7 +71,7 @@ public class Rotation2d implements Interpolatable { * Adds two rotations together, with the result being bounded between -pi and pi. * *

For example, Rotation2d.fromDegrees(30).plus(Rotation2d.fromDegrees(60)) equals - * Rotation2d.fromRadians(Math.PI/2.0) + * Rotation2d(Math.PI/2.0) * * @param other The rotation to add. * @return The sum of the two rotations. @@ -84,7 +84,7 @@ public class Rotation2d implements Interpolatable { * Subtracts the new rotation from the current rotation and returns the new rotation. * *

For example, Rotation2d.fromDegrees(10).minus(Rotation2d.fromDegrees(100)) - * equals Rotation2d.fromRadians(-Math.PI/2.0) + * equals Rotation2d(-Math.PI/2.0) * * @param other The rotation to subtract. * @return The difference between the two rotations.