Accord.Math.Vector3.ToVector4 C# (CSharp) Method

ToVector4() public method

Converts the vector to a 4D vector.

The method returns a 4D vector which has X, Y and Z coordinates equal to the coordinates of this 3D vector and W coordinate set to 1.0.

public ToVector4 ( ) : Vector4
return Vector4
        public Vector4 ToVector4( )
        {
            return new Vector4( X, Y, Z, 1 );
        }
    }