Fix degree to radian

Corrects a small error in the comments and in the parameter name, which indicated degrees instead of radian
This commit is contained in:
Le Juez Victor
2023-12-14 02:26:53 +01:00
committed by GitHub
parent 34748ebbec
commit af6e1f4e85

View File

@@ -240,10 +240,10 @@ class Vector2 : public ::Vector2 {
}
/**
* Rotate Vector by float in Degrees
* Rotate Vector by float in radians
*/
inline Vector2 Rotate(float degrees) const {
return Vector2Rotate(*this, degrees);
inline Vector2 Rotate(float angle) const {
return Vector2Rotate(*this, angle);
}
/**