toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-foundation
/
korlibs.math.geom
/
AABB3D
AABB3D
data
class
AABB3D
(
val
min
:
Vector3F
=
Vector3F()
,
val
max
:
Vector3F
=
Vector3F()
)
:
Shape3D
Members
Members & Extensions
Constructors
AABB3D
Link copied to clipboard
constructor
(
min
:
Vector3F
=
Vector3F()
,
max
:
Vector3F
=
Vector3F()
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
center
Link copied to clipboard
open
override
val
center
:
Vector3F
max
Link copied to clipboard
val
max
:
Vector3F
max
X
Link copied to clipboard
val
maxX
:
Float
max
Y
Link copied to clipboard
val
maxY
:
Float
max
Z
Link copied to clipboard
val
maxZ
:
Float
min
Link copied to clipboard
val
min
:
Vector3F
min
X
Link copied to clipboard
val
minX
:
Float
min
Y
Link copied to clipboard
val
minY
:
Float
min
Z
Link copied to clipboard
val
minZ
:
Float
size
X
Link copied to clipboard
val
sizeX
:
Float
size
Y
Link copied to clipboard
val
sizeY
:
Float
size
Z
Link copied to clipboard
val
sizeZ
:
Float
volume
Link copied to clipboard
open
override
val
volume
:
Float
Functions
expanded
To
Fit
Link copied to clipboard
fun
expandedToFit
(
that
:
AABB3D
)
:
AABB3D
intersects
AABB
Link copied to clipboard
fun
intersectsAABB
(
box
:
AABB3D
)
:
Boolean
intersects
Sphere
Link copied to clipboard
fun
intersectsSphere
(
sphere
:
Sphere3D
)
:
Boolean
fun
intersectsSphere
(
origin
:
Vector3F
,
radius
:
Float
)
:
Boolean
to
BVH
Link copied to clipboard
fun
AABB3D
.
toBVH
(
out
:
BVHIntervals
=
BVHIntervals(3)
)
:
BVHRect