Class: VoxelIDMatrix
Util/VoxelIDMatrix.VoxelIDMatrix
Hierarchy
-
DataMatrix<string|number>↳
VoxelIDMatrix
Constructors
constructor
• new VoxelIDMatrix(size): VoxelIDMatrix
Parameters
| Name | Type |
|---|---|
size | Vec3Array |
Returns
Overrides
Defined in
divinevoxel/foundation/src/Util/VoxelIDMatrix.ts:10
Properties
defaultValue
• defaultValue: string | number
Inherited from
Defined in
divinevoxel/foundation/src/Util/DataMatrix.ts:6
index
• index: Flat3DIndex
Defined in
divinevoxel/foundation/src/Util/VoxelIDMatrix.ts:8
size
• size: Vec3Array
Inherited from
Defined in
divinevoxel/foundation/src/Util/VoxelIDMatrix.ts:10
dataTool
▪ Static dataTool: DataTool
Defined in
divinevoxel/foundation/src/Util/VoxelIDMatrix.ts:7
Accessors
sizeX
• get sizeX(): number
Returns
number
Inherited from
DataMatrix.sizeX
Defined in
divinevoxel/foundation/src/Util/DataMatrix.ts:11
sizeY
• get sizeY(): number
Returns
number
Inherited from
DataMatrix.sizeY
Defined in
divinevoxel/foundation/src/Util/DataMatrix.ts:15
sizeZ
• get sizeZ(): number
Returns
number
Inherited from
DataMatrix.sizeZ
Defined in
divinevoxel/foundation/src/Util/DataMatrix.ts:19
Methods
cloneMatrix
▸ cloneMatrix(): (string | number)[][][]
Returns
(string | number)[][][]
Inherited from
Defined in
divinevoxel/foundation/src/Util/DataMatrix.ts:26
copy
▸ copy(matrix): void
Parameters
| Name | Type |
|---|---|
matrix | VoxelIDMatrix |
Returns
void
Defined in
divinevoxel/foundation/src/Util/VoxelIDMatrix.ts:58
deleteVec3
▸ deleteVec3(«destructured»): void
Parameters
| Name | Type |
|---|---|
«destructured» | Vec3Array |
Returns
void
Inherited from
Defined in
divinevoxel/foundation/src/Util/DataMatrix.ts:49
deleteXYZ
▸ deleteXYZ(x, y, z): void
Parameters
| Name | Type |
|---|---|
x | number |
y | number |
z | number |
Returns
void
Inherited from
Defined in
divinevoxel/foundation/src/Util/DataMatrix.ts:53
fromFlatArray
▸ fromFlatArray(voxels): void
Parameters
| Name | Type |
|---|---|
voxels | ArrayLike<number> |
Returns
void
Defined in
divinevoxel/foundation/src/Util/VoxelIDMatrix.ts:44
getAll
▸ getAll(): Generator<[Vec3Array, string | number], any, unknown>
Returns
Generator<[Vec3Array, string | number], any, unknown>
Inherited from
Defined in
divinevoxel/foundation/src/Util/DataMatrix.ts:69