Example #1
0
    public static Mugen3D.Core.Vector AsVector(this Mugen3D.Core.Number[] array)
    {
        Mugen3D.Core.Vector v = Mugen3D.Core.Vector.zero;
        for (int i = 0; i < array.Length; i++)
        {
            switch (i)
            {
            case 0:
                v.x = array[i]; break;

            case 1:
                v.y = array[i]; break;

            case 2:
                v.z = array[i]; break;
            }
        }
        return(v);
    }
Example #2
0
 public static Vector3 ToVector3(this Mugen3D.Core.Vector v)
 {
     return(new Vector3(v.x.AsFloat(), v.y.AsFloat(), v.z.AsFloat()));
 }