Exemplo n.º 1
0
 /// <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));
 }
Exemplo n.º 2
0
        //#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);
        }
Exemplo n.º 3
0
 public bool Equals(Matrix3x2 other)
 {
     return(M11.Equals(other.M11) && M12.Equals(other.M12) && M21.Equals(other.M21) && M22.Equals(other.M22) && M31.Equals(other.M31) && M32.Equals(other.M32));
 }
Exemplo n.º 4
0
 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));
 }
Exemplo n.º 5
0
 /// <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);
Exemplo n.º 6
0
 /// <inheritdoc />
 public bool Equals(Matrix3x3 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);