Arma Reforger Script API
Loading...
Searching...
No Matches
LegacyCurve Interface Reference

Static Public Member Functions

static proto vector Curve (ECurveType type, float param, notnull array< vector > points, array< float > knots=null)
 Computes curve.
 
static proto vector Curve3 (ECurveType type, float param, notnull Curve3 points, int curveIndex, array< float > knots=null)
 Evaluates a single curve from multicurve object.
 

Member Function Documentation

◆ Curve()

static proto vector LegacyCurve.Curve ( ECurveType type,
float param,
notnull array< vector > points,
array< float > knots = null )
static

Computes curve.

Knots array is used only for non-uniform curve types. For example, CatmullRom and CurveProperty2D.

auto points = new array<vector>();
points.Insert( Vector( 0, 0, 0) );
points.Insert( Vector( 5, 0, 0) );
points.Insert( Vector( 8, 3, 0) );
points.Insert( Vector( 6, 1, 0) );
float t = 0.5;
vector result = LegacyCurve.Curve(ECurveType.CatmullRom, t, points);

◆ Curve3()

static proto vector LegacyCurve.Curve3 ( ECurveType type,
float param,
notnull Curve3 points,
int curveIndex,
array< float > knots = null )
static

Evaluates a single curve from multicurve object.

See also
LegacyCurve.Curve

The documentation for this interface was generated from the following file: