Specified angle units for Vector2d rotate() function. (#679)

Fixes #676.
This commit is contained in:
Tyler Veness
2017-10-21 15:29:39 -07:00
committed by Peter Johnson
parent 0521d85048
commit 9dc1de1d09
2 changed files with 2 additions and 2 deletions

View File

@@ -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));