/// <summary> /// Compares whether current instance is equal to specified <see cref="Matrix" /> without any tolerance. /// </summary> /// <param name="other">The <see cref="Matrix" /> to compare.</param> /// <returns><c>true</c> if the instances are equal; <c>false</c> otherwise.</returns> public bool Equals(Matrix other) { return(M11.Equals(other.M11) && M22.Equals(other.M22) && M33.Equals(other.M33) && M44.Equals(other.M44) && M12.Equals(other.M12) && M13.Equals(other.M13) && M14.Equals(other.M14) && M21.Equals(other.M21) && M23.Equals(other.M23) && M24.Equals(other.M24) && M31.Equals(other.M31) && M32.Equals(other.M32) && M34.Equals(other.M34) && M41.Equals(other.M41) && M42.Equals(other.M42) && M43.Equals(other.M43)); }
//#endif #endregion #region IEquatable<Matrix4x4d> Members public bool Equals(Matrix4x4d other) { // Check reference first. if (object.ReferenceEquals(this, other)) { return(true); } // Check for value equality. if (!M00.Equals(other.M00)) { return(false); } if (!M10.Equals(other.M10)) { return(false); } if (!M20.Equals(other.M20)) { return(false); } if (!M30.Equals(other.M30)) { return(false); } if (!M01.Equals(other.M01)) { return(false); } if (!M11.Equals(other.M11)) { return(false); } if (!M21.Equals(other.M21)) { return(false); } if (!M31.Equals(other.M31)) { return(false); } if (!M02.Equals(other.M02)) { return(false); } if (!M12.Equals(other.M12)) { return(false); } if (!M22.Equals(other.M22)) { return(false); } if (!M32.Equals(other.M32)) { return(false); } if (!M03.Equals(other.M03)) { return(false); } if (!M13.Equals(other.M13)) { return(false); } if (!M23.Equals(other.M23)) { return(false); } if (!M33.Equals(other.M33)) { return(false); } return(true); }
public bool Equals(Matrix3X3 other) { return(M11.Equals(other.M11) && M21.Equals(other.M21) && M31.Equals(other.M31) && M12.Equals(other.M12) && M22.Equals(other.M22) && M32.Equals(other.M32) && M13.Equals(other.M13) && M23.Equals(other.M23) && M33.Equals(other.M33)); }
public bool Equals(Float3x3 other) => M11.Equals(other.M11) && M12.Equals(other.M12) && M13.Equals(other.M13) && M21.Equals(other.M21) && M22.Equals(other.M22) && M23.Equals(other.M23) && M31.Equals(other.M31) && M32.Equals(other.M32) && M33.Equals(other.M33);
/// <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);