示例#1
0
 /// <summary>
 /// Get the hash code.
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(shape.Handle.ToInt32() ^
            point.GetHashCode() ^
            distance.GetHashCode() ^
            (gradient.GetHashCode() << 4));
 }
        /// <summary>
        /// Get the hash code.
        /// </summary>
        public override int GetHashCode()
        {
            var hashCode = -475635172;

            hashCode = hashCode * -1521134295 + count.GetHashCode();
            hashCode = hashCode * -1521134295 + normal.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <ContactPoint[]> .Default.GetHashCode(points);

            return(hashCode);
        }
        /// <summary>
        /// Get the <see cref="ContactPoint"/> hash set.
        /// </summary>
        public override int GetHashCode()
        {
            var hashCode = -1285340573;

            hashCode = hashCode * -1521134295 + pointA.GetHashCode();
            hashCode = hashCode * -1521134295 + pointB.GetHashCode();
            hashCode = hashCode * -1521134295 + distance.GetHashCode();

            return(hashCode);
        }
示例#4
0
        /// <summary>
        /// Get the hash code.
        /// </summary>
        public override int GetHashCode()
        {
            var hashCode = -1275187100;

            hashCode = hashCode * -1521134295 + shape.GetHashCode();
            hashCode = hashCode * -1521134295 + point.GetHashCode();
            hashCode = hashCode * -1521134295 + normal.GetHashCode();
            hashCode = hashCode * -1521134295 + alpha.GetHashCode();
            return(hashCode);
        }