Class: Table3D
A 3D table for intepolating across multiple dimensions.
Constructors
constructor
• new Table3D(): Table3D
Returns
Methods
addRange
▸ addRange(x
, values
): void
Adds a range of values to the table.
Parameters
Name | Type | Description |
---|---|---|
x | number | The x value for this range of values. |
values | Float64Array [] | The range of values in [y, z] |
Returns
void
Defined in
src/sdk/utils/datastructures/Table3D.ts:13
getValue
▸ getValue(x
, y
): number
Gets the interpolated value from the table given an x and y position.
Parameters
Name | Type | Description |
---|---|---|
x | number | The x position to interpolate for. |
y | number | The y position to interpolate for. |
Returns
number
The interpolated number.
Defined in
src/sdk/utils/datastructures/Table3D.ts:25