/// <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());
     }
 }
Exemplo n.º 2
0
 /// <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());
     }
 }
Exemplo n.º 3
0
 /// <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());
     }
 }
Exemplo n.º 4
0
 /// <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());
     }
 }