idTech4.Extensions.Normalize C# (CSharp) Method

Normalize() public static method

public static Normalize ( this plane, bool fixDegenerate ) : float
plane this
fixDegenerate bool
return float
		public static float Normalize(this Plane plane, bool fixDegenerate)
		{
			plane.Normalize();
			float length = plane.Normal.Length();

			if(fixDegenerate == true)
			{
				plane.Normal.FixDegenerateNormal();
			}

			return length;
		}
		#endregion