Bounds3d
classin packageklyn.graphics3d
public class Bounds3d
Bounds3d

Axis-aligned 3D bounds, independent of the GUI. Example: box = Bounds3d(); box.include(Vector3d(1.0, 2.0, 3.0))

Properties
Modifier and Type Member Description
public readonly property center
center as Vector3d<Double>
Center, or origin for empty bounds.
public readonly property isEmpty
isEmpty as Boolean
True until a point is included.
public readonly property maximum
maximum as Vector3d<Double>
Defensive copy of the maximum corner.
public readonly property minimum
minimum as Vector3d<Double>
Defensive copy of the minimum corner.
public readonly property radius
radius as Double
Radius of the enclosing sphere, zero for empty bounds.
Methods
Modifier and Type Member Description
public include
include(point as Vector3d<Double>) as Void
Expands bounds; rejects non-finite points.
public includeBounds
includeBounds(other as Bounds3d, transform as Matrix4) as Void
Includes the transformed eight corners of another box, O(1).