mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51: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
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user