Slight optimisation to angle modding functions (mainly Clamp180 would shift a negative angle to be 0-360 and then shift it back).
author Gerry1135
()
committer Gerry1135
()
commit 37e3e8cdeff1200a272e0cd0a310db2d58884d90
tree c863cd49d6a465a65ea8de8ba3c5d9bf921cae8e
parent 1e67a3cb417868e3c808e66d3fda981fcbacc577
Slight optimisation to angle modding functions (mainly Clamp180 would shift a negative angle to be 0-360 and then shift it back).
Now completely avoid the mod operator and just does repeated add/subtract until in the correct range.
KerbalEngineer/Helpers/AngleHelper.cs