Interpolator that follows an arctangent, which eases in and out of the range.
More...
#include <interpolator.h>
|
| | ~ATanInterpolator () override=default |
| | Destroy the object.
|
| | ATanInterpolator (float fY0, float fY1, float fX0, float fX1, float fSeverity) |
| | Construct an interpolator.
|
| void | Reset (float fY0, float fY1, float fX0, float fX1, float fSeverity) |
| | Replace the end points and the severity.
|
| void | Reset (float fY0, float fY1, float fX0, float fX1) override |
| | Replace the end points and preserve the severity.
|
| float | Interp (float fX) override |
| | Map an input along the curve.
|
| virtual | ~Interpolator () |
| | Release the interpolator.
|
| virtual float | Eval (float fX) |
| | Map an input, clamping it to the range first.
|
| float | GetY0 () const |
| float | GetY1 () const |
| float | GetX0 () const |
| float | GetX1 () const |
Interpolator that follows an arctangent, which eases in and out of the range.
The RTTI records the class as deriving from Interpolator. The object is 0x3c bytes.
◆ ~ATanInterpolator()
| ATanInterpolator::~ATanInterpolator |
( |
| ) |
|
|
overridedefault |
Destroy the object.
- Ghidra address:
- NTSC-U/C: 0x003a8820
- Ghidra address:
- PAL: 0x00417500
◆ ATanInterpolator()
| ATanInterpolator::ATanInterpolator |
( |
float | fY0, |
|
|
float | fY1, |
|
|
float | fX0, |
|
|
float | fX1, |
|
|
float | fSeverity ) |
Construct an interpolator.
- Parameters
-
| fY0 | The output at the start of the range. |
| fY1 | The output at the end of the range. |
| fX0 | The start of the input range. |
| fX1 | The end of the input range. |
| fSeverity | How sharply the curve turns. A larger value eases harder. |
- Ghidra address:
- NTSC-U/C: 0x00291870
- Ghidra address:
- PAL: 0x0029b238
◆ Reset() [1/2]
| void ATanInterpolator::Reset |
( |
float | fY0, |
|
|
float | fY1, |
|
|
float | fX0, |
|
|
float | fX1, |
|
|
float | fSeverity ) |
Replace the end points and the severity.
- Parameters
-
| fY0 | The output at the start of the range. |
| fY1 | The output at the end of the range. |
| fX0 | The start of the input range. |
| fX1 | The end of the input range. |
| fSeverity | How sharply the curve turns. |
- Ghidra address:
- NTSC-U/C: 0x00291918
- Ghidra address:
- PAL: 0x0029b2e0
◆ Reset() [2/2]
| void ATanInterpolator::Reset |
( |
float | fY0, |
|
|
float | fY1, |
|
|
float | fX0, |
|
|
float | fX1 ) |
|
overridevirtual |
Replace the end points and preserve the severity.
- Parameters
-
| fY0 | The output at the start of the range. |
| fY1 | The output at the end of the range. |
| fX0 | The start of the input range. |
| fX1 | The end of the input range. |
- Ghidra address:
- NTSC-U/C: 0x002919d8
- Ghidra address:
- PAL: 0x0029b3a0
Implements Interpolator.
◆ Interp()
| float ATanInterpolator::Interp |
( |
float | fX | ) |
|
|
overridevirtual |
Map an input along the curve.
- Parameters
-
- Returns
- The output.
- Ghidra address:
- NTSC-U/C: 0x002919f8
- Ghidra address:
- PAL: 0x0029b3c0
Implements Interpolator.
The documentation for this class was generated from the following file: