Box
-
class
Box
() Represents an axis-aligned bounding box. A box is represented by a minimum and maximum point which describe the extents of the box.
Constructors
Methods
Constructors
Properties
-
Box.
max
Type: Point3 The point of maximum extent for the box.
-
Box.
min
Type: Point3 The point of minimum extent for the box.
Methods
addBox
addPoint
center
-
Box.
center
() Gets the center point for the box.
Returns: The center point of this box. Return type: Point3
equals
extents
-
Box.
extents
() Gets the extents of the box.
Returns: A point with members set to extent values for each corresponding axis. Return type: Point3
getCorners
-
Box.
getCorners
() Gets all eight corner points for the box.
Returns: The corner points of this box. Return type: [Point3]
isDegenerate
-
Box.
isDegenerate
() Returns whether or not the box is degenerate.
Returns: whether or not the box is degenerate. Return type: boolean
toJson
-
Box.
toJson
() Creates an object ready for JSON serialization.
Returns: The prepared object. Return type: object