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-hash-holder
Grid3HashHolder
Class Grid3HashHolder<T>
Type parameters
T
Hierarchy
Grid3HashHolder
Implements
Grid3Holder
<
T
>
Index
Constructors
constructor
Properties
data
values
Accessors
length
Methods
clear
delete
fill
for
Each
get
set
set
Holder
swap
transform
Constructors
constructor
new
Grid3
Hash
Holder<T>
(
cacheForIteration
?:
boolean
)
:
Grid3HashHolder
<
T
>
Type parameters
T
Parameters
cacheForIteration:
boolean
= false
Returns
Grid3HashHolder
<
T
>
Properties
Private
data
data
:
{}
= {}
Type declaration
[
key:
number
]:
{
value
:
T
;
x
:
number
;
y
:
number
;
z
:
number
}
value
:
T
x
:
number
y
:
number
z
:
number
Private
values
values
:
{
value
:
T
;
x
:
number
;
y
:
number
;
z
:
number
}
[]
= []
Accessors
length
get
length
(
)
:
number
Returns
number
Methods
clear
clear
(
)
:
void
Returns
void
delete
delete
(
x
:
number
, y
:
number
, z
:
number
)
:
void
Parameters
x:
number
y:
number
z:
number
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
:
(
value
:
T
, x
:
number
, y
:
number
, z
:
number
)
=>
unknown
)
:
boolean
Parameters
callback:
(
value
:
T
, x
:
number
, y
:
number
, z
:
number
)
=>
unknown
(
value
:
T
, x
:
number
, y
:
number
, z
:
number
)
:
unknown
Parameters
value:
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
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-
hash-
holder
Grid3
Hash
Holder
constructor
data
values
length
clear
delete
fill
for
Each
get
set
set
Holder
swap
transform
Generated using
TypeDoc
Fill all holder with value or with result of callback value