CSharpGL.vecHelper.ToVec4 C# (CSharp) Method

ToVec4() public static method

public static ToVec4 ( this array, int startIndex ) : vec4
array this
startIndex int
return vec4
        public static vec4 ToVec4(this float[] array, int startIndex = 0)
        {
            vec4 result = new vec4(array[startIndex], array[startIndex + 1], array[startIndex + 2], array[startIndex + 3]);

            return result;
        }