Skip to content

Commit

Permalink
[wpimath] Fix reference to Rotation2d.fromRadians() (#4118)
Browse files Browse the repository at this point in the history
Rotation2d.fromRadians() doesn't exist. The constructor should be used
instead.
  • Loading branch information
calcmogul authored Mar 21, 2022
1 parent e1b6e5f commit ba0dcca
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public static Rotation2d fromDegrees(double degrees) {
* Adds two rotations together, with the result being bounded between -pi and pi.
*
* <p>For example, <code>Rotation2d.fromDegrees(30).plus(Rotation2d.fromDegrees(60))</code> equals
* <code>Rotation2d.fromRadians(Math.PI/2.0)</code>
* <code>Rotation2d(Math.PI/2.0)</code>
*
* @param other The rotation to add.
* @return The sum of the two rotations.
Expand All @@ -84,7 +84,7 @@ public Rotation2d plus(Rotation2d other) {
* Subtracts the new rotation from the current rotation and returns the new rotation.
*
* <p>For example, <code>Rotation2d.fromDegrees(10).minus(Rotation2d.fromDegrees(100))</code>
* equals <code>Rotation2d.fromRadians(-Math.PI/2.0)</code>
* equals <code>Rotation2d(-Math.PI/2.0)</code>
*
* @param other The rotation to subtract.
* @return The difference between the two rotations.
Expand Down

0 comments on commit ba0dcca

Please sign in to comment.