Struct IntRect

Public

Integer Rectangle.

Works almost like UnityEngine.Rect but with integer coordinates

Public Methods

Contains (other)
Public
Contains (x, y)
Public
DebugDraw (transform, color)

Draws some debug lines representing the rect.

Public
Equals (obj)
Public
Expand (range)

Returns a new rect which is expanded by range in all directions.

Public
ExpandToContain (x, y)

Returns a new IntRect which is expanded to contain the point.

Public
GetHashCode ()
Public
IntRect (xmin, ymin, xmax, ymax)
Public
IsValid ()

Returns if this rectangle is valid.

Public
Offset (offset)

Returns a new IntRect which has been moved by an offset.

Public
ToString ()
Public

Public Static Methods

Intersection (a, b)

Returns the intersection rect between the two rects.

Public Static
Intersects (a, b)

Returns if the two rectangles intersect each other.

Public Static
operator!= (a, b)
Public Static
operator== (a, b)
Public Static
Union (a, b)

Returns a new rect which contains both input rects.

Public Static

Public Variables

Height
Public
Width
Public
xmax
Public
xmin
Public
ymax
Public
ymin
Public