Normalize the result of the rotation

This commit is contained in:
Pascal Serrarens 2023-12-29 12:27:22 +01:00
parent 006ea046e4
commit aaf335d218

View File

@ -72,6 +72,6 @@ Polar Polar::operator/(const float& f) {
} }
Polar Polar::Rotate(Polar v, float angle) { Polar Polar::Rotate(Polar v, float angle) {
v.angle += angle; v.angle = Angle::Normalize(v.angle + angle);
return v; return v;
} }