data class Bound3D(var min: Vector3 = Vector3(0f, 0f, 0f), var max: Vector3 = Vector3(0f, 0f, 0f))
Bound3D
(
min
, max
)
|
max
: Vector3
[Get][Set] |
Signature
var max: Vector3 |
min
: Vector3
[Get][Set] |
Signature
var min: Vector3 |
center
()
|
Calculates the center of the bounding box.
Signature
fun center(): Vector3 |
contains
(
v
)
|
Checks if a given vector is within the bounds of the bounding box.
Signature
fun contains(v: Vector3): Boolean Parameters Returns
Boolean
|
encapsulate
(
bounds
)
|
Encapsulates another bounding box within this one.
Signature
fun encapsulate(bounds: Bound3D) Parameters |
extents
()
|
Calculates the extents of the bounding box.
Signature
fun extents(): Vector3 |
getVolume
()
|
Calculates the volume of this 3D bounding box.
Signature
fun Bound3D.getVolume(): Float Returns
Float
|
size
()
|
Calculates the size of the bounding box.
Signature
fun size(): Vector3 |
toString
()
|
Returns a string representation of this object in the format (min, max).
Signature
open override fun toString(): String Returns
String
|