Struct IntRect

Public

Integer Rectangle.

Uses an inclusive coordinate range.

Works almost like UnityEngine.Rect but with integer coordinates

Public Methods

Contains (...)
Equals (obj)
Expand (range)

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

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

Returns a list of all integer coordinates inside the rectangle, in row-major order.

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

Returns if this rectangle is valid.

Offset (offset)

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

Public Static Methods

Exclude (a, b)

Returns a new rect that contains all of a except for the parts covered by b.

Intersection (a, b)

Returns the intersection rect between the two rects.

Intersects (a, b)

Returns if the two rectangles intersect each other.

Union (a, b)

Returns a new rect which contains both input rects.

operator!= (a, b)
operator== (a, b)

Public Variables

Area
Public
Height
Public
Max
Public
Min
Public
Width
Public
xmax
Public
xmin
Public
ymax
Public
ymin
Public