CSG.Vector4D.Vector4D C# (CSharp) Method

Vector4D() public method

public Vector4D ( float elements ) : System.Collections
elements float
return System.Collections
        public Vector4D(float[] elements)
        {
            if(elements != null && elements.Length >= 4)
            {
                X = elements[0];
                Y = elements[1];
                Z = elements[2];
                W = elements[3];
            }
            else
            {
                X = 0;
                Y = 0;
                Z = 0;
                W = 0;
            }
        }

Same methods

Vector4D::Vector4D ( Vector4D src ) : System.Collections
Vector4D::Vector4D ( float x, float y, float z, float w ) : System.Collections