Skip to content

Curve

class Curve

A Curve which describe the variation of a value (on the Y-axis) according to another (on the X-axis).

Functions

Name Description
Curve Creates an empty Curve.
Initialize Initializes curve parts from the given definition.
Initialize Initializes curve parts from the given vector.
Get Get the curve value corresponding to the given X value.

Function Details

Curve

Curve()

Creates an empty Curve.

Get

[[nodiscard]] AmReal32 Get(AmReal64 x) const

Get the curve value corresponding to the given X value.

Parameter x
The X value.
Return
The curve value.

Initialize

void Initialize(const CurveDefinition* definition)

Initializes curve parts from the given definition.

Parameter definition
The curve definition data.

void Initialize(const std::vector<CurvePart>& parts)

Initializes curve parts from the given vector.

Parameter parts
The vector of curve parts.