Struct IntRect

Public

Integer Rectangle.

Uses an inclusive coordinate range.

Works almost like UnityEngine.Rect but with integer coordinates

Public Methods

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
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
Union (a, b)

Returns a new rect which contains both input rects.

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

Public Variables

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