示例#1
0
 public bool Equals(IMultivector other)
 {
     if (other == null)
     {
         return(false);
     }
     if (Space != other?.Space)
     {
         return(false);
     }
     return(MultivectorMethods.AreEqual(this, other));
 }
示例#2
0
        // Equals

        /// <summary>
        /// Compares the values of this Multivector with those of M.
        /// </summary>
        /// <param name="M">The other Multivector</param>
        /// <returns>True if the Multivectors are from the space and their coordinates are identical, false otherwise.</returns>
        public bool Equals(Multivector?other)
        {
            if (other == null)
            {
                return(false);
            }
            if (Space != other?.Space)
            {
                return(false);
            }
            return(MultivectorMethods.AreEqual(Elements, other?.Elements));
        }