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
Use modulo arithmetic:
this.orientation += degrees; this.orientation = this.orientation % 360; if (this.orientation < 0) { this.orientation += 360; }