littlekt
0.6.0
common
core
/
com.lehaine.littlekt.math.spatial
/
KdTree
Kd
Tree
open
class
KdTree
<
T
:
Any
>
(
items
:
List
<
T
>
,
itemAdapter
:
ItemAdapter
<
T
>
,
bucketSz
:
Int
=
10
)
:
SpatialTree
<
T
>
Source from kool engine.
Types
Constructors
Functions
Properties
Constructors
Kd
Tree
Link copied to clipboard
fun
<
T
:
Any
>
KdTree
(
items
:
List
<
T
>
,
itemAdapter
:
ItemAdapter
<
T
>
,
bucketSz
:
Int
=
10
)
Types
Kd
Node
Link copied to clipboard
inner
class
KdNode
(
val
nodeRange
:
IntRange
,
bucketSz
:
Int
)
:
SpatialTree.Node
<
T
>
Functions
contains
Link copied to clipboard
open
operator override
fun
contains
(
element
:
T
)
:
Boolean
contains
All
Link copied to clipboard
open
override
fun
containsAll
(
elements
:
Collection
<
T
>
)
:
Boolean
is
Empty
Link copied to clipboard
open
override
fun
isEmpty
(
)
:
Boolean
iterator
Link copied to clipboard
open
operator override
fun
iterator
(
)
:
MutableIterator
<
T
>
Properties
item
Adapter
Link copied to clipboard
val
itemAdapter
:
ItemAdapter
<
T
>
root
Link copied to clipboard
open
override
val
root
:
KdTree.KdNode
<
T
>
size
Link copied to clipboard
open
override
val
size
:
Int