Exemplo n.º 1
0
        static DVector4[] ToVector4(Vector4[] inputVectors)
        {
            var vectors = new DVector4[inputVectors.Length];

            for (int i = 0; i < inputVectors.Length; i++)
            {
                var v = inputVectors[i];
                vectors[i] = new DVector4(v.x, v.y, v.z, v.w);
            }

            return(vectors);
        }
Exemplo n.º 2
0
        static DVector4[] ToVector4(Color[] inputVectors)
        {
            var vectors = new DVector4[inputVectors.Length];

            for (int i = 0; i < inputVectors.Length; i++)
            {
                var v = inputVectors[i];
                vectors[i] = new DVector4(v.r, v.g, v.b, v.a);
            }

            return(vectors);
        }