BoundingBox
-
class
cee.BoundingBox() An axis-oriented bounding box storing the extent of an object.
All vertices of the object that the bounding box has been computed for will be within the box defined by the min and max corners.
Note that this class is immutable.
Constructors
-
cee.BoundingBox.constructor() Creates a bounding box with the given min and max corners.
Parameters
Returns:
BoundingBox
Properties
-
cee.BoundingBox.maximum readonly
maximum:Vec3The maximum values for x, y and z across all vertices in the object.
-
cee.BoundingBox.minimum readonly
minimum:Vec3The minimum values for x, y and z across all vertices in the object.
Methods
-
cee.BoundingBox.getExtent() - getExtent():
Vec3Returns the extent for each component (x,y,z) of the bounding box (maximum - minimum).
Returns:
Vec3
-
cee.BoundingBox.isValid() - isValid(): boolean
Returns true if the bounding box is valid, i.e. if minimum < maximum for x, y and z.
Returns: boolean
-
static cee.BoundingBox.createInvalid() static
createInvalid():BoundingBoxCreates an invalid bounding box where maximum < minimum for x, y and z
Returns:
BoundingBox