NFrame.NFVector3.Length C# (CSharp) Method

Length() public method

public Length ( ) : float
return float
        public float Length()
        {
            return (float)Math.Sqrt(x * x + y * y + z * z);
        }

Usage Example

Example #1
0
        public static float Distance(NFVector3 va, NFVector3 vb)
        {
            NFVector3 vector = NFVector3.sub(va, vb);

            return(vector.Length());
        }