Class PiecewiseCurve
Namespace: ValveResourceFormat.Particles.Utils
Assembly: ValveResourceFormat.dll
A piecewise curve used in particle systems' dynamic parameters.
csharp
public class PiecewiseCurveInheritance
object ← PiecewiseCurve
Constructors
PiecewiseCurve(KVObject, bool)
Reads a piecewise curve from its compiled data.
csharp
public PiecewiseCurve(KVObject curveInfo, bool isLooped)Parameters
curveInfo KVObject
The curve data.
isLooped bool
Whether evaluation wraps around the curve's domain.
Properties
DomainMax
Gets the highest input (X) and output (Y) the curve is defined over.
csharp
public Vector2 DomainMax { get; }Property Value
DomainMin
Gets the lowest input (X) and output (Y) the curve is defined over.
csharp
public Vector2 DomainMin { get; }Property Value
Methods
Evaluate(float)
Evaluates the curve at the given input value.
csharp
public float Evaluate(float value)Parameters
value float
Returns
float

