mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
Specified angle units for Vector2d rotate() function. (#679)
Fixes #676.
This commit is contained in:
committed by
Peter Johnson
parent
0521d85048
commit
9dc1de1d09
@@ -26,7 +26,7 @@ public class Vector2d {
|
||||
/**
|
||||
* Rotate a vector in Cartesian space.
|
||||
*
|
||||
* @param angle angle by which to rotate vector counter-clockwise.
|
||||
* @param angle angle in degrees by which to rotate vector counter-clockwise.
|
||||
*/
|
||||
public void rotate(double angle) {
|
||||
double cosA = Math.cos(angle * (Math.PI / 180.0));
|
||||
|
||||
Reference in New Issue
Block a user