Exemplo n.º 1
0
 public static Matrix4x4 Create(SysVector4 x, SysVector4 y, SysVector4 z, SysVector4 w)
 {
     return(Create(
                x.AsVector128(),
                y.AsVector128(),
                z.AsVector128(),
                w.AsVector128()
                ));
 }
Exemplo n.º 2
0
    /// <summary>Creates a vector from a two-dimensional vector, a Y-component, and a Z-component</summary>
    /// <param name="vector">The value of the x and y dimensions.</param>
    /// <param name="z">The value of the z-component.</param>
    /// <param name="w">The value of the w-component.</param>
    public static Vector4 Create(Vector2 vector, float z, float w)
    {
        var value = new SysVector4(vector.AsSystemVector2(), z, w);

        return(new Vector4(value.AsVector128()));
    }
Exemplo n.º 3
0
 /// <summary>Creates a quaternion from a system vector.</summary>
 /// <param name="value">The value of the quaternion.</param>
 public static Quaternion Create(SysVector4 value) => new Quaternion(value.AsVector128());
Exemplo n.º 4
0
 /// <summary>Creates a vector from a system vector.</summary>
 /// <param name="value">The value of the vector.</param>
 public static Vector4 Create(SysVector4 value) => new Vector4(value.AsVector128());