Name | Type | Default | Description |
---|---|---|---|
left |
number | 0 | optional |
top |
number | 0 | optional |
right |
number | 0 | optional |
bottom |
number | 0 | optional |
Methods
-
abs ()Rectangle
-
Returns:
Type Description Rectangle -
amountToTranslateWithin (aRect)Point
-
Name Type Description aRect
Rectangle Returns:
Type Description Point -
Returns:
Type Description number -
Returns:
Type Description Array.<number> -
Returns:
Type Description Array.<number> -
Returns:
Type Description number -
bottomCenter ()Point
-
Returns:
Type Description Point -
bottomLeft ()Point
-
Returns:
Type Description Point -
bottomRight ()Point
-
Returns:
Type Description Point -
boundingBox ()Rectangle
-
Returns:
Type Description Rectangle -
center ()Point
-
Returns:
Type Description Point -
Name Type Description aPoint
Point Returns:
Type Description boolean -
Name Type Description aRect
Rectangle Returns:
Type Description boolean -
copy ()Rectangle
-
Returns:
Type Description Rectangle -
corners ()Array.<Point>
-
Returns:
Type Description Array.<Point> -
Name Type Description aRect
Rectangle Returns:
Type Description boolean -
expandBy (delta)Rectangle
-
Name Type Description delta
number | Point Returns:
Type Description Rectangle -
extent ()Point
-
Returns:
Type Description Point -
growBy (delta)Rectangle
-
Name Type Description delta
number | Point Returns:
Type Description Rectangle -
Returns:
Type Description number -
Name Type Description originPoint
Point cornerPoint
Point -
insetBy (delta)Rectangle
-
Name Type Description delta
number | Point Returns:
Type Description Rectangle -
intersect (aRect)Rectangle
-
Name Type Description aRect
Rectangle Returns:
Type Description Rectangle -
Name Type Description aRect
Rectangle Returns:
Type Description boolean -
Name Type Description aRect
Rectangle threshold
number Returns:
Type Description boolean -
Returns:
Type Description number -
leftCenter ()Point
-
Returns:
Type Description Point -
merge (aRect)Rectangle
-
Name Type Description aRect
Rectangle Returns:
Type Description Rectangle -
Name Type Description aRect
Rectangle -
position ()Point
-
Returns:
Type Description Point -
Returns:
Type Description number -
rightCenter ()Point
-
Returns:
Type Description Point -
round ()Rectangle
-
Returns:
Type Description Rectangle -
scaleBy (scale)Rectangle
-
Name Type Description scale
number | Point Returns:
Type Description Rectangle -
Name Type Description left
number optional top
number optional right
number optional bottom
number optional -
spread ()Rectangle
-
Returns:
Type Description Rectangle -
Returns:
Type Description number -
topCenter ()Point
-
Returns:
Type Description Point -
topLeft ()Point
-
Returns:
Type Description Point -
topRight ()Point
-
Returns:
Type Description Point -
Returns:
Type Description String Example
'[0@0 | 80@50]'
-
translateBy (factor)Rectangle
-
Name Type Description factor
number | Point Returns:
Type Description Rectangle -
Returns:
Type Description number