Overview
The base class for objects that are used to describe the bounds of a node or other scene graph object.
Profile: common
Variable Summary
access | name | type | Can Read | Can Init | Can Write | Default Value | description |
---|---|---|---|---|---|---|---|
public-init package | depth | Number | 0.0 |
The depth of this |
|||
public-init package | height | Number | 0.0 |
The height of this |
|||
public-read | maxX | Number | minX + width |
The x coordinate of the lower-right corner of this |
|||
public-read | maxY | Number | minY + height |
The y coordinate of the lower-right corner of this |
|||
public-read | maxZ | Number | minZ + depth |
The maximum z coordinate of this |
|||
public-init package | minX | Number | 0.0 |
The x coordinate of the upper-left corner of this |
|||
public-init package | minY | Number | 0.0 |
The y coordinate of the upper-left corner of this |
|||
public-init package | minZ | Number | 0.0 |
The minimum z coordinate of this |
|||
public-init package | width | Number | 0.0 |
The width of this |
Inherited Variables
Function Summary
- public abstract contains(p: Point2D) : Boolean
- public abstract contains(x: Number, y: Number) : Boolean
-
Tests if the specified
(x, y)
coordinates are inside the boundary ofBounds
.Tests if the specified
(x, y)
coordinates are inside the boundary ofBounds
.-
Parameters
- x
- the specified x coordinate to be tested
- y
- the specified y coordinate to be tested
-
Returns
- Boolean
-
true if the specified
(x, y)
coordinates are inside the boundary of thisBounds
; false otherwise.
Profile: common
- public abstract contains(b: Bounds) : Boolean
-
Tests if the interior of this
Bounds
entirely contains the specified Bounds,b
.Tests if the interior of this
Bounds
entirely contains the specified Bounds,b
.-
Parameters
- b
- The specified Bounds
-
Returns
- Boolean
-
true if the specified Bounds,
b
, is inside the boundary of thisBounds
; false otherwise.
Profile: common
- public abstract contains(x: Number, y: Number, w: Number, h: Number) : Boolean
-
Tests if the interior of this
Bounds
entirely contains the specified rectangular area.Tests if the interior of this
Bounds
entirely contains the specified rectangular area.-
Parameters
- x
- the x coordinate of the upper-left corner of the specified rectangular area
- y
- the y coordinate of the upper-left corner of the specified rectangular area
- w
- the width of the specified rectangular area
- h
- the height of the specified rectangular area
-
Returns
- Boolean
-
true if the interior of this
Bounds
entirely contains the specified rectangular area; false otherwise.
Profile: common
- public abstract intersects(b: Bounds) : Boolean
-
Tests if the interior of this
Bounds
intersects the interior of a specified Bounds,b
.Tests if the interior of this
Bounds
intersects the interior of a specified Bounds,b
.-
Parameters
- b
- The specified Bounds
-
Returns
- Boolean
-
true if the interior of this
Bounds
and the interior of the specified Bounds,b
, intersect.
Profile: common
- public abstract intersects(x: Number, y: Number, w: Number, h: Number) : Boolean
-
Tests if the interior of this
Bounds
intersects the interior of a specified rectangular area.Tests if the interior of this
Bounds
intersects the interior of a specified rectangular area.-
Parameters
- x
- the x coordinate of the upper-left corner of the specified rectangular area
- y
- the y coordinate of the upper-left corner of the specified rectangular area
- w
- the width of the specified rectangular area
- h
- the height of the specified rectangular area
-
Returns
- Boolean
-
true if the interior of this
Bounds
and the interior of the rectangular area intersect.
Profile: common