BoxVolume#
Interface BoxVolume
Hierarchy
- BoxVolume
Methods
contains
- contains(other): boolean
-
Returns true if the given BoxVolume contains the other BoxVolume.
Parameters
-
other: BoxVolume
the other BoxVolume
Returns boolean
-
copy
- copy(other): void
-
Parameters
-
other: BoxVolume
Returns void
-
equals
- equals(other): boolean
-
Returns true if the given BoxVolume equals the other BoxVolume.
Parameters
-
other: BoxVolume
the other BoxVolume
Returns boolean
-
extend
extend By Transformed Volume
- extend
By Transformed Volume(other, transform?): void -
Parameters
-
other: BoxVolume
-
Optional
transform: Float32Array | [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number]
Returns void
-
extend By Volume
- extend
By Volume(other): void -
Extends a BoxVolume by another BoxVolume. The resulting BoxVolume will span over the other BoxVolume too.
Parameters
-
other: BoxVolume
Returns void
-
from Array
get Center
get Corner Points
get Diameter
get Max
get Min
get Radial Vec
get Size
include Point
is Valid
overlaps
- overlaps(other): boolean
-
Returns true if two BoxVolumes are overlapping.
Parameters
-
other: BoxVolume
Returns boolean
-
This interfaces provides functions for working with BoxVolumes. BoxVolumes are Axis Aligned Bounding Boxes (AABB) and describe the minimal Bounding Box of a Node. They consist of six values, 3 for the minimum and 3 for the maximum corner.