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

@@ -21,7 +21,7 @@ Vector2d::Vector2d(double x, double y) {
/**
* 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.
*/
void Vector2d::Rotate(double angle) {
double cosA = std::cos(angle * (kPi / 180.0));