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.
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.