Constructor
new CoordinateMatrix3D(minX, maxX, minY, maxY, minZ, maxZ, start)
Constructs a CoordinateMatrix3D.
Parameters:
Name | Type | Description |
---|---|---|
minX |
number | The minimum x value. |
maxX |
number | The maximum x value. |
minY |
number | The minimum y value. |
maxY |
number | The maximum y value. |
minZ |
number | The minimum z value. |
maxZ |
number | The maximum z value. |
start |
Coordinate3D | The starting coordinate. |
Example
new CoordinateMatrix3D(0, 1, 0, 1, 0, 1, new Coordinate3D(0, 0, 0))
Classes
Members
maxX :number
The maximum x value of this matrix.
Type:
- number
maxY :number
The maximum y value of this matrix.
Type:
- number
maxZ :number
The maximum z value of this matrix.
Type:
- number
minX :number
The minimum x value of this matrix.
Type:
- number
minY :number
The minimum y value of this matrix.
Type:
- number
minZ :number
The minimum z value of this matrix.
Type:
- number
start :Coordinate3D
The starting coordinate of this matrix.
Type:
Methods
toString() → {string}
Gets the string representation of this CoordinateMatrix3D.
Returns:
The string representation of this CoordinateMatrix3D.
- Type
- string
(static) fromString(str) → {CoordinateMatrix3D}
Converts a string to a CoordinateMatrix3D.
Parameters:
Name | Type | Description |
---|---|---|
str |
string | The string to convert. |
Throws:
-
If the string is invalid.
- Type
- SyntaxError
Returns:
The parsed CoordinateMatrix3D.
- Type
- CoordinateMatrix3D
Example
CoordinateMatrix3D.fromString('(0, 1, 0, 1, 0, 1)^[0, 0, 0]')