/// <summary> /// Normalizes this vector. /// </summary> public void Normalize() { float fInvLen = MathHelpers.ReciprocalSquareRoot(this.X * this.X + this.Y * this.Y + this.Z * this.Z); this.X *= fInvLen; this.Y *= fInvLen; this.Z *= fInvLen; }