Toast Engine
Loading...
Searching...
No Matches
editor.Assets.CurveFile Class Referencesealed

Public Member Functions

 CurveFile (IEnumerable< Curve > channels, SplineType type, float tScale=1f)
void Save (string path)
string Serialize ()
void SetDimension (CurveDimension dimension)
void SetSplineType (SplineType type)
void SetTScale (float tScale)
float Eval (float t)
float float y Eval2 (float t)
float float float z Eval3 (float t)

Static Public Member Functions

static CurveFile FromFile (string path)
static CurveFile FromString (string toml)

Public Attributes

float x
float float y

Static Public Attributes

static readonly string[] ChannelNames = ["x", "y", "z"]

Properties

IReadOnlyList< Curve > Channels [get]
CurveDimension Dimension [get]
SplineType SplineType [get]
float TScale [get]

The documentation for this class was generated from the following file:
  • editor/Assets/Curve.cs