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)); }
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 ); }
public static bool CompareEqualAll(Vector3 left, Vector3 right, Vector3 epsilon) => VectorUtilities.CompareEqualAll(left._value.AsVector128(), right._value.AsVector128(), epsilon._value.AsVector128());
public static bool CompareEqualAll(Quaternion left, Quaternion right, Quaternion epsilon) => VectorUtilities.CompareEqualAll(left._value, right._value, epsilon._value);
public static bool operator ==(Quaternion left, Quaternion right) => VectorUtilities.CompareEqualAll(left._value, right._value);
public static bool CompareEqualAll(Vector4 left, Vector4 right, Vector4 epsilon) => VectorUtilities.CompareEqualAll(left._value, right._value, epsilon._value);
public static bool operator ==(Vector4 left, Vector4 right) => VectorUtilities.CompareEqualAll(left._value, right._value);