[wpimath] Rotation2d comment formatting (NFC) (#3162)

This commit is contained in:
Zachary Orr
2021-02-16 21:06:01 -05:00
committed by GitHub
parent d1c7032dec
commit e42a0b6cf0
2 changed files with 10 additions and 4 deletions

View File

@@ -112,8 +112,13 @@ public class Rotation2d {
/**
* Adds the new rotation to the current rotation using a rotation matrix.
*
* <p>The matrix multiplication is as follows: [cos_new] [other.cos, -other.sin][cos] [sin_new] =
* [other.sin, other.cos][sin] value_new = atan2(cos_new, sin_new)
* <p>The matrix multiplication is as follows:
*
* <pre>
* [cos_new] [other.cos, -other.sin][cos]
* [sin_new] = [other.sin, other.cos][sin]
* value_new = atan2(sin_new, cos_new)
* </pre>
*
* @param other The rotation to rotate by.
* @return The new rotated Rotation2d.