Nexus.Normal3D.Length C# (CSharp) Method

Length() public method

public Length ( ) : float
return float
        public float Length()
        {
            float lengthSq = ((this.X * this.X) + (this.Y * this.Y)) + (this.Z * this.Z);
            return (float)System.Math.Sqrt(lengthSq);
        }

Usage Example

Ejemplo n.º 1
0
 public static Normal3D Normalize(Normal3D v)
 {
     return v / v.Length();
 }
All Usage Examples Of Nexus.Normal3D::Length