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-map-holder
Grid3MapHolder
Class Grid3MapHolder<T>
Type parameters
T
Hierarchy
Grid3MapHolder
Implements
Grid3Holder
<
T
>
Index
Constructors
constructor
Properties
data
length
Methods
clear
fill
for
Each
get
get
Area
get
Area
Internally
get
Between
get
Random
Block
set
set
Data
set
Holder
swap
transform
init
Empty
Constructors
constructor
new
Grid3
Map
Holder<T>
(
data
:
T
[]
[]
[]
)
:
Grid3MapHolder
<
T
>
Type parameters
T
Parameters
data:
T
[]
[]
[]
Returns
Grid3MapHolder
<
T
>
Properties
Readonly
data
data
:
T
[]
[]
[]
Readonly
length
length
:
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
:
(
block
:
T
, x
:
number
, y
:
number
, z
:
number
)
=>
boolean
|
void
)
:
boolean
Parameters
callback:
(
block
:
T
, x
:
number
, y
:
number
, z
:
number
)
=>
boolean
|
void
(
block
:
T
, x
:
number
, y
:
number
, z
:
number
)
:
boolean
|
void
Parameters
block:
T
x:
number
y:
number
z:
number
Returns
boolean
|
void
Returns
boolean
get
get
(
x
:
number
, y
:
number
, z
:
number
)
:
T
Parameters
x:
number
y:
number
z:
number
Returns
T
get
Area
get
Area
(
position
:
SimpleVector3
, size
:
SimpleVector3
)
:
T
[]
Parameters
position:
SimpleVector3
size:
SimpleVector3
Returns
T
[]
Private
get
Area
Internally
get
Area
Internally
(
position
:
SimpleVector3
, size
:
SimpleVector3
, select
:
"data"
)
:
T
[]
get
Area
Internally
(
position
:
SimpleVector3
, size
:
SimpleVector3
, select
:
"block"
)
:
Grid3Block
<
T
>
[]
Parameters
position:
SimpleVector3
size:
SimpleVector3
select:
"data"
Returns
T
[]
Parameters
position:
SimpleVector3
size:
SimpleVector3
select:
"block"
Returns
Grid3Block
<
T
>
[]
get
Between
get
Between
(
pointA
:
SimpleVector3
, pointB
:
SimpleVector3
)
:
T
[]
Parameters
pointA:
SimpleVector3
pointB:
SimpleVector3
Returns
T
[]
get
Random
Block
get
Random
Block
(
filter
?:
GridBlockItemFilter
<
T
>
)
:
undefined
|
Grid3Block
<
T
>
Parameters
Optional
filter:
GridBlockItemFilter
<
T
>
Returns
undefined
|
Grid3Block
<
T
>
set
set
(
x
:
number
, y
:
number
, z
:
number
, value
:
T
)
:
void
Parameters
x:
number
y:
number
z:
number
value:
T
Returns
void
set
Data
set
Data
(
data
:
T
[]
[]
[]
)
:
void
Parameters
data:
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
Static
init
Empty
init
Empty<S>
(
x
:
number
, y
:
number
, z
:
number
, defaultValue
?:
S
)
:
Grid3MapHolder
<
S
>
Type parameters
S
Parameters
x:
number
y:
number
z:
number
defaultValue:
S
= ...
Returns
Grid3MapHolder
<
S
>
Modules
models/data-
structures/grid-
accessor/holders-
3d/grid3-
map-
holder
Grid3
Map
Holder
constructor
data
length
clear
fill
for
Each
get
get
Area
get
Area
Internally
get
Between
get
Random
Block
set
set
Data
set
Holder
swap
transform
init
Empty
Generated using
TypeDoc
Fill all holder with value or with result of callback value