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

Represents three 2D curves, where every four floats next to each other in the underlying array are organized as (x, y0, y1, y2). More...

Inheritance diagram for Curve3:

Public Member Functions

vector GetPoint (int pointIndex, int curveIndex)
 
void SetPointValue (int pointIndex, int curveIndex, float value)
 

Detailed Description

Represents three 2D curves, where every four floats next to each other in the underlying array are organized as (x, y0, y1, y2).

Curve points share the x value, and then three separate y values are present, one for each curve.

It is indended to be used as a property in following way:

[Attribute("", UIWidgets.GraphDialog)]
Curve3 m_Curve;
Represents three 2D curves, where every four floats next to each other in the underlying array are or...
Definition Math.c:44

It may then be evaluated with following code, where i is index of the curve to be evaluated, ranging from 0 to 2:

Math3D.Curve3(ECurveType.CatmullRom, t, m_Curve, i);

Member Function Documentation

◆ GetPoint()

vector Curve3.GetPoint ( int pointIndex,
int curveIndex )
Returns
Vector in format (x, y, 0).

◆ SetPointValue()

void Curve3.SetPointValue ( int pointIndex,
int curveIndex,
float value )

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