Search
Preparing search index...
The search index is not available
gtools
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
gtools
models/data-structures/grid-accessor/holders-3d/grid3-object-holder
Grid3ObjectHolder
Class Grid3ObjectHolder<T>
Type parameters
T
Hierarchy
Grid3ObjectHolder
Implements
Grid3Holder
<
T
>
Index
Constructors
constructor
Properties
_length
data
Accessors
length
Methods
clear
fill
for
Each
get
remove
set
set
Holder
swap
transform
Constructors
constructor
new
Grid3
Object
Holder<T>
(
)
:
Grid3ObjectHolder
<
T
>
Type parameters
T
Returns
Grid3ObjectHolder
<
T
>
Properties
Private
_length
_length
:
number
= 0
Private
data
data
:
{}
= {}
Type declaration
[
x:
number
]:
{}
[
y:
number
]:
{}
[
z:
number
]:
T
Accessors
length
get
length
(
)
:
number
Returns
number
Methods
clear
clear
(
)
:
void
Returns
void
fill
fill<R>
(
value
:
R
|
(
(
x
:
number
, y
:
number
, z
:
number
)
=>
R
)
)
:
void
Fill all holder with value or with result of callback value
Type parameters
R
:
Record
<
string
|
number
,
unknown
>
Parameters
value:
R
|
(
(
x
:
number
, y
:
number
, z
:
number
)
=>
R
)
Returns
void
for
Each
for
Each
(
callback
:
(
item
:
T
, x
:
number
, y
:
number
, z
:
number
)
=>
unknown
)
:
boolean
Parameters
callback:
(
item
:
T
, x
:
number
, y
:
number
, z
:
number
)
=>
unknown
(
item
:
T
, x
:
number
, y
:
number
, z
:
number
)
:
unknown
Parameters
item:
T
x:
number
y:
number
z:
number
Returns
unknown
Returns
boolean
get
get
(
x
:
number
, y
:
number
, z
:
number
)
:
T
Parameters
x:
number
y:
number
z:
number
Returns
T
remove
remove
(
x
:
number
, y
:
number
, z
:
number
)
:
void
Parameters
x:
number
y:
number
z:
number
Returns
void
set
set
(
x
:
number
, y
:
number
, z
:
number
, value
:
T
)
:
void
Parameters
x:
number
y:
number
z:
number
value:
T
Returns
void
set
Holder
set
Holder
(
holder
:
Grid3Holder
<
T
>
)
:
void
Parameters
holder:
Grid3Holder
<
T
>
Returns
void
swap
swap
(
ax
:
number
, ay
:
number
, az
:
number
, bx
:
number
, by
:
number
, bz
:
number
)
:
void
Parameters
ax:
number
ay:
number
az:
number
bx:
number
by:
number
bz:
number
Returns
void
transform
transform
(
x
:
number
, y
:
number
, z
:
number
, transformer
:
(
value
:
T
)
=>
T
)
:
void
Parameters
x:
number
y:
number
z:
number
transformer:
(
value
:
T
)
=>
T
(
value
:
T
)
:
T
Parameters
value:
T
Returns
T
Returns
void
Modules
models/data-
structures/grid-
accessor/holders-
3d/grid3-
object-
holder
Grid3
Object
Holder
constructor
_length
data
length
clear
fill
for
Each
get
remove
set
set
Holder
swap
transform
Generated using
TypeDoc
Fill all holder with value or with result of callback value