#include <LinearCurve.h>
◆ 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: