Adds the yaw/pitch of the specified rotations to this rotation's yaw/pitch, and returns the result. @param other Another rotation @return The result from adding the other rotation to this rotation
(Rotation other)
| 63 | * @return The result from adding the other rotation to this rotation |
| 64 | */ |
| 65 | public Rotation add(Rotation other) { |
| 66 | return new Rotation( |
| 67 | this.yaw + other.yaw, |
| 68 | this.pitch + other.pitch |
| 69 | ); |
| 70 | } |
| 71 | |
| 72 | /** |
| 73 | * Subtracts the yaw/pitch of the specified rotations from this |
no outgoing calls