pylon-core
Toggle table of contents
1.0.0-SNAPSHOT
jvm
Platform filter
jvm
Switch theme
Search in API
pylon-core
pylon-core
/
io.github.pylonmc.pylon.core.util
/
Octree
Octree
open
class
Octree
<
N
>
(
maxDepth
:
Int
=
DEFAULT_MAX_DEPTH
,
maxEntries
:
Int
=
DEFAULT_MAX_ENTRIES
,
bounds
:
BoundingBox
,
depth
:
Int
,
entryStrategy
:
(
N
)
->
BoundingBox
)
:
Iterable
<
N
>
(
source
)
Members
Constructors
Octree
Link copied to clipboard
constructor
(
bounds
:
BoundingBox
,
depth
:
Int
,
entryStrategy
:
(
N
)
->
BoundingBox
)
constructor
(
maxDepth
:
Int
=
DEFAULT_MAX_DEPTH
,
maxEntries
:
Int
=
DEFAULT_MAX_ENTRIES
,
bounds
:
BoundingBox
,
depth
:
Int
,
entryStrategy
:
(
N
)
->
BoundingBox
)
Types
Companion
Link copied to clipboard
object
Companion
Functions
clear
Link copied to clipboard
open
fun
clear
(
)
insert
Link copied to clipboard
open
fun
insert
(
entry
:
N
)
:
Boolean
iterator
Link copied to clipboard
open
operator override
fun
iterator
(
)
:
Iterator
<
N
>
max
Depth
Link copied to clipboard
fun
maxDepth
(
)
:
Int
query
Link copied to clipboard
fun
query
(
range
:
BoundingBox
)
:
List
<
N
>
remove
Link copied to clipboard
open
fun
remove
(
entry
:
N
)
:
Boolean