Wayfinder Bounds Class
A class used to describe an area of the map by holding minimum and maximum coordinates. With properties, (r) means read only, (r/w) means read/write.
|
box3 |
property (r) |
Returns a compatiable THREE.Box3 object |
|
center |
property (r) |
Returns an object containing an x, y and z property representing the exact center of the bounding box/cube. |
|
combine(bounds) |
function |
Combains the supplied bounds with the current bounds resulting in a bounds that encompases both. bounds can be a WayfinderBounds or THREE.Box3 object. |
|
combinePoint(x,y,z) |
function |
Enlarges the current bounds to include the x, y and z coordinates supplied. |
|
combineVector(v) |
function |
Combines the coordinates from the supplied vector object, which contains an x, y and z property. Compatible with a THREE.Vector3 object. |
|
copy |
function |
Makes a copy of this object |
|
getScaledBox(scale) |
function |
Makes a copy of this object and scales it by the amount supplied. |
|
max |
property (r) |
Returns an object containing the maximum coordinate of the bounding box/cube. The object contains an x, y and z property. |
|
min |
property (r) |
Returns an object containing the minimum coordinate of the bounding box/cube. The object contains an x, y and z property. |
|
offsetBy(x,y,z) |
function |
Moves the bounding box by the supplied values. |
|
populateFromBox3(box) |
function |
Initializes this object using the values from the supplied THREE.Box3 object |
|
populateFromWayfinderBounds(bounds) |
function |
Initializes this object using the values from the supplied WayfinderBounds object |
|
scale(amount) |
function |
Scales the object by the specified amount |
|
setMax(x, y, z) |
function |
Overrides the maximum bounds and changes them to the coordinates supplied |
|
setMin(x, y, z) |
function |
Overrides the minimum bounds and changes them to the coordinates supplied |
|
size |
property (r) |
Returns an object containing the size of the bounds with properties x, y and z. |
|
valid |
property (r) |
Returns |