Click or drag to resize
RectangleI Methods

The RectangleI type exposes the following members.

Methods
  NameDescription
Public methodCalculateClosestPoint(Vector2I)
Calculates the point closest to the specified position on the border of this rectangle. If this rectangle contains the specified position, the position is returned instead.
Public methodCalculateClosestPoint(Vector2F, Vector2F)
Calculates the point closest to the specified position on the border of this rectangle with width threshold. If this rectangle contains the specified position, the position is returned instead.
Public methodCalculateClosestPoint(Vector2I, Vector2I)
Calculates the point closest to the specified position on the border of this rectangle with width threshold. If this rectangle contains the specified position, the position is returned instead.
Public methodContains(RectangleI)
Checks whether this rectangle entirely encompasses the passed other one.
Public methodContains(Vector2I)
Checks whether this rectangle contains the point denoted by the specified vector.
Public methodEquals(Object)
Compares the passed rectangle to this one for equality.
(Overrides ObjectEquals(Object).)
Public methodEquals(RectangleI)
Compares the passed rectangle to this one for equality.
Public methodStatic memberFromBounds
Creates a new rectangle from the specified bounds.
Public methodGetHashCode
Gets the hash code of this rectangle.
(Overrides ObjectGetHashCode.)
Public methodIntersect
Intersects this rectangle with the specified one, creating an intersection rectangle.
Public methodIntersects
Checks whether this rectangle at least partially intersects the passed other one.
Public methodStatic memberSpan
Calculates the rectangle which spans the specified positions.
Public methodToString
Returns a String representation of this rectangle.
(Overrides ObjectToString.)
Public methodUnion
Creates the union of this rectangle and the specified other one.
Top
Extension Methods
  NameDescription
Public Extension MethodToRect
Converts the specified framework rectangle to an Unity rectangle.
(Defined by MathConversionExtensions.)
Top
See Also