Static methods
staticinlinefromPoints(min:IPoint, max:IPoint):IBounds
Returns a new IBounds instance from given min/max IPoints.
staticinlinefromValues(x0:Int, y0:Int, width:Int, height:Int):IBounds
Returns a new IBounds instance from given rectangle.
Parameters:
x | Rectangle horizontal position. |
|---|---|
y | Rectangle vertical position. |
width | Rectangle width. |
height | Rectangle height. |
Constructor
Variables
Methods
inlineaddPos(x:Int, y:Int):Void
Adds position x and y to the IBounds, expanding min/max when necessary.
inlinedoIntersect(b:IBounds):Void
Sets this IBounds min/max values to a result of intersection between this IBounds and given IBounds b.
See intersection to get new instance of IBounds as intersection result.
inlinedoUnion(b:IBounds):Void
Sets this IBounds min/max values to a result of combining this IBounds and given IBounds b. Equivalent of addBounds.
intersection(b:IBounds):IBounds
Returns new Bounds instance containing intersection results of this IBounds and given IBounds b.
inlineisEmpty():Bool
Tests if bounding box is empty.
IBounds are considered empty when either xMax is less than or equals to xMin or yMax is less than or equals to yMin.
inlineset(x:Int, y:Int, width:Int, height:Int):Void
Sets bounds from given rectangle.
Parameters:
x | Rectangle horizontal position. |
|---|---|
y | Rectangle vertical position. |
width | Rectangle width. |
height | Rectangle height. |
