Ejemplo n.º 1
0
 public static bool operator ==(Matrix4x4 left, in Matrix4x4 right)
 {
     return(VectorUtilities.CompareEqualAll(left._x, right._x) &&
            VectorUtilities.CompareEqualAll(left._y, right._y) &&
            VectorUtilities.CompareEqualAll(left._z, right._z) &&
            VectorUtilities.CompareEqualAll(left._w, right._w));
 }
Ejemplo n.º 2
0
    public static void CompareEqualAllTest()
    {
        Assert.That(() => VectorUtilities.CompareEqualAll(Vector128.Create(1.0f, 2.0f, 3.0f, 4.0f), Vector128.Create(1.0f, 2.0f, 3.0f, 4.0f)),
                    Is.True
                    );

        Assert.That(() => VectorUtilities.CompareEqualAll(Vector128.Create(1.0f, 2.0f, 3.0f, 4.0f), Vector128.Create(1.0f, -2.0f, 3.0f, -4.0f)),
                    Is.False
                    );
    }
Ejemplo n.º 3
0
 public static bool CompareEqualAll(Vector3 left, Vector3 right, Vector3 epsilon)
 => VectorUtilities.CompareEqualAll(left._value.AsVector128(), right._value.AsVector128(), epsilon._value.AsVector128());
Ejemplo n.º 4
0
 public static bool CompareEqualAll(Quaternion left, Quaternion right, Quaternion epsilon) => VectorUtilities.CompareEqualAll(left._value, right._value, epsilon._value);
Ejemplo n.º 5
0
 public static bool operator ==(Quaternion left, Quaternion right) => VectorUtilities.CompareEqualAll(left._value, right._value);
Ejemplo n.º 6
0
 public static bool CompareEqualAll(Vector4 left, Vector4 right, Vector4 epsilon) => VectorUtilities.CompareEqualAll(left._value, right._value, epsilon._value);
Ejemplo n.º 7
0
 public static bool operator ==(Vector4 left, Vector4 right) => VectorUtilities.CompareEqualAll(left._value, right._value);