/// <summary> /// Compares two Matrix4 objects for equality. /// </summary> /// <param name="mat">The Matrix4 to compare.</param> /// <returns>Returns true if they are equal and false otherwise.</returns> public bool Equals(Matrix4 mat) { return(M11.Equals(mat.M11) && M12.Equals(mat.M12) && M13.Equals(mat.M13) && M14.Equals(mat.M14) && M21.Equals(mat.M21) && M22.Equals(mat.M22) && M23.Equals(mat.M23) && M24.Equals(mat.M24) && M31.Equals(mat.M31) && M32.Equals(mat.M32) && M33.Equals(mat.M33) && M34.Equals(mat.M34) && M41.Equals(mat.M41) && M42.Equals(mat.M42) && M43.Equals(mat.M43) && M44.Equals(mat.M44)); }
/// <inheritdoc /> public bool Equals(Matrix4x4 other) => M11.Equals(other.M11) && M12.Equals(other.M12) && M13.Equals(other.M13) && M14.Equals(other.M14) && M21.Equals(other.M21) && M22.Equals(other.M22) && M23.Equals(other.M23) && M24.Equals(other.M24) && M31.Equals(other.M31) && M32.Equals(other.M32) && M33.Equals(other.M33) && M34.Equals(other.M34) && M41.Equals(other.M41) && M42.Equals(other.M42) && M43.Equals(other.M43) && M44.Equals(other.M44);