KSP API
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties
Public Member Functions | Properties | List of all members
FloatCurve Class Reference

Represents a function of one variable. The function is interpolated from a given set of points, and optionally the tangents at those points can be specified. More...

Public Member Functions

 FloatCurve ()
 
void Add (float time, float value)
 
void Add (float time, float value, float inTangent, float outTangent)
 
float Evaluate (float time)
 Evaluate the function at a given value of the input parameter. More...
 
void Load (ConfigNode node)
 
void Save (ConfigNode node)
 

Properties

float maxTime [get]
 
float minTime [get]
 

Detailed Description

Represents a function of one variable. The function is interpolated from a given set of points, and optionally the tangents at those points can be specified.

Constructor & Destructor Documentation

FloatCurve.FloatCurve ( )

Member Function Documentation

void FloatCurve.Add ( float  time,
float  value 
)
void FloatCurve.Add ( float  time,
float  value,
float  inTangent,
float  outTangent 
)
float FloatCurve.Evaluate ( float  time)

Evaluate the function at a given value of the input parameter.

Parameters
timeThe input parameter (not necessarily a time).
Returns
The value of the function.
void FloatCurve.Load ( ConfigNode  node)
inline
void FloatCurve.Save ( ConfigNode  node)
inline

Property Documentation

float FloatCurve.maxTime
get
float FloatCurve.minTime
get

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