#include <LinearCurve.h>
|
using | Points = Array< Point > |
| The points on the curve, should be sorted ascending by x.
|
|
|
void | Clear () |
| Remove all points.
|
|
void | Reserve (uint inNumPoints) |
| Reserve memory for inNumPoints points.
|
|
void | AddPoint (float inX, float inY) |
|
void | Sort () |
| Sort the points on X ascending.
|
|
float | GetMinX () const |
| Get the lowest X value.
|
|
float | GetMaxX () const |
| Get the highest X value.
|
|
float | GetValue (float inX) const |
|
void | SaveBinaryState (StreamOut &inStream) const |
| Saves the state of this object in binary form to inStream.
|
|
void | RestoreBinaryState (StreamIn &inStream) |
| Restore the state of this object from inStream.
|
|
◆ Points
The points on the curve, should be sorted ascending by x.
◆ AddPoint()
void LinearCurve::AddPoint |
( |
float |
inX, |
|
|
float |
inY |
|
) |
| |
|
inline |
Add a point to the curve. Points must be inserted in ascending X or Sort() needs to be called when all points have been added.
- Parameters
-
◆ Clear()
void LinearCurve::Clear |
( |
| ) |
|
|
inline |
◆ GetMaxX()
float LinearCurve::GetMaxX |
( |
| ) |
const |
|
inline |
◆ GetMinX()
float LinearCurve::GetMinX |
( |
| ) |
const |
|
inline |
◆ GetValue()
float LinearCurve::GetValue |
( |
float |
inX | ) |
const |
Sample value on the curve
- Parameters
-
- Returns
- Interpolated Y value
◆ Reserve()
void LinearCurve::Reserve |
( |
uint |
inNumPoints | ) |
|
|
inline |
Reserve memory for inNumPoints points.
◆ RestoreBinaryState()
void LinearCurve::RestoreBinaryState |
( |
StreamIn & |
inStream | ) |
|
Restore the state of this object from inStream.
◆ SaveBinaryState()
void LinearCurve::SaveBinaryState |
( |
StreamOut & |
inStream | ) |
const |
Saves the state of this object in binary form to inStream.
◆ Sort()
void LinearCurve::Sort |
( |
| ) |
|
|
inline |
Sort the points on X ascending.
◆ mPoints
The documentation for this class was generated from the following files: