Skip to main content

Class: Table3D

A 3D table for intepolating across multiple dimensions.

Constructors

constructor

new Table3D(): Table3D

Returns

Table3D

Methods

addRange

addRange(x, values): void

Adds a range of values to the table.

Parameters

NameTypeDescription
xnumberThe x value for this range of values.
valuesFloat64Array[]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

NameTypeDescription
xnumberThe x position to interpolate for.
ynumberThe y position to interpolate for.

Returns

number

The interpolated number.

Defined in

src/sdk/utils/datastructures/Table3D.ts:25