CSharpGL.vecHelper.ToVec3 C# (CSharp) Method

ToVec3() public static method

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

            return result;
        }