My Project
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties
Static Public Member Functions | List of all members
UniExtensions.UnityRectExtensions Class Reference

Static Public Member Functions

static bool Intersects (this Rect rect, Rect other)
 Test if this rect intersects with another rect. More...
 
static bool Intersects (this Rect rect, IEnumerable< Rect > rects)
 Test if this rect intersects with any rects in the list. More...
 
static Vector3[] Vertices (this Rect r, float grow=0)
 Convert the rect to an array of vertices. More...
 

Member Function Documentation

static bool UniExtensions.UnityRectExtensions.Intersects ( this Rect  rect,
Rect  other 
)
inlinestatic

Test if this rect intersects with another rect.

Parameters
rectA Rect
otherA Rect
Returns
A System.Boolean
static bool UniExtensions.UnityRectExtensions.Intersects ( this Rect  rect,
IEnumerable< Rect >  rects 
)
inlinestatic

Test if this rect intersects with any rects in the list.

Parameters
rectA Rect
rectsA IEnumerable(Rect) The list of rects to check against.
Returns
A System.Boolean
static Vector3 [] UniExtensions.UnityRectExtensions.Vertices ( this Rect  r,
float  grow = 0 
)
inlinestatic

Convert the rect to an array of vertices.

Parameters
rThe rect.

The documentation for this class was generated from the following file: