I\'m working on a simple rotate routine which normalizes an objects rotation between 0 and 360 degrees. My C# code seems to be working but I\'m not entirely happy with it. Can a
I sort of quickly mocked this up in AS3, but should work (you may need += on the angle)
+=
private Number clampAngle(Number angle) { return (angle % 360) + (angle < 0 ? 360 : 0); }