/// <summary> /// Returns a hash code of this <see cref="BoundingRectangle" /> suitable for use in hashing algorithms and data /// structures like a hash table. /// </summary> /// <returns> /// A hash code of this <see cref="BoundingRectangle" />. /// </returns> public override int GetHashCode() { unchecked { return((Center.GetHashCode() * 397) ^ HalfExtents.GetHashCode()); } }
/// <summary> /// Returns a hash code of this <see cref="Segment2" /> suitable for use in hashing algorithms and data /// structures like a hash table. /// </summary> /// <returns> /// A hash code of this <see cref="Segment2" />. /// </returns> public override int GetHashCode() { unchecked { return((Start.GetHashCode() * 397) ^ End.GetHashCode()); } }
/// <summary> /// Returns a hash code of this <see cref="CircleF" /> suitable for use in hashing algorithms and data /// structures like a hash table. /// </summary> /// <returns> /// A hash code of this <see cref="CircleF" />. /// </returns> public override int GetHashCode() { unchecked { return((Center.GetHashCode() * 397) ^ Radius.GetHashCode()); } }
/// <summary> /// Returns a hash code of this <see cref="Ray2D" /> suitable for use in hashing algorithms and data /// structures like a hash table. /// </summary> /// <returns> /// A hash code of this <see cref="Ray2D" />. /// </returns> public override int GetHashCode() { unchecked { return((Position.GetHashCode() * 397) ^ Direction.GetHashCode()); } }