Normalize the result of the rotation
This commit is contained in:
parent
006ea046e4
commit
aaf335d218
@ -72,6 +72,6 @@ Polar Polar::operator/(const float& f) {
|
||||
}
|
||||
|
||||
Polar Polar::Rotate(Polar v, float angle) {
|
||||
v.angle += angle;
|
||||
v.angle = Angle::Normalize(v.angle + angle);
|
||||
return v;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user