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.