wavelength 1.0.0
Loading...
Searching...
No Matches
interpolator.h File Reference
#include "script/dataarray.h"
Include dependency graph for interpolator.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Interpolator
 Map from an input range to an output range, clamped at both ends. More...
class  LinearInterpolator
 Straight-line interpolator. More...
class  ExpInterpolator
 Interpolator whose output follows a power of the input's position in the range. More...
class  InvExpInterpolator
 Interpolator that mirrors ExpInterpolator, easing out of the start of the range. More...
class  ATanInterpolator
 Interpolator that follows an arctangent, which eases in and out of the range. More...
class  TableInterpolator
 Interpolator that reads the nearest entry of an evenly spaced table. More...
class  TableLinInterpolator
 Interpolator that blends linearly between the two entries of a table around an input. More...

Functions

Interpolator * ObjectToInterpolator (const DataArray *pArray)
 Build the interpolator a configuration array describes.

Function Documentation

◆ ObjectToInterpolator()

Interpolator * ObjectToInterpolator ( const DataArray * pArray)

Build the interpolator a configuration array describes.

The first symbol selects the class: linear, exp, invexp, atan, table, or tablelin. The first four numbers that follow are the end points in Reset() order. exp and invexp take an optional exponent (2 by default) and atan an optional severity (10 by default). table and tablelin take the input range and then the table entries.

Parameters
pArrayThe array.
Returns
The new interpolator, or null after a warning for an unknown class.
Ghidra address:
NTSC-U/C: 0x002911c0
Ghidra address:
PAL: 0x0029ab88