/// <summary> /// Restricts the current instance of <see cref="AnglesF"/> to be within a range [0, 360]. /// </summary> public void Normalize360() { int i; for (i = 0; i < 3; i++) { if ((this[i] >= 360.0f) || (this[i] < 0.0f)) { this[i] -= MathEx.Floor(this[i] / 360.0f) * 360.0f; if (this[i] >= 360.0f) { this[i] -= 360.0f; } if (this[i] < 0.0f) { this[i] += 360.0f; } } } }