Struct StepCurveKeyframe
A single keyframe that can be injected into an animation curve (step).
Assembly: FlaxEngine.dll
File: Engine/Animations/Curve.h
Syntax
public struct StepCurveKeyframe<T>
Type Parameters
T
|
Constructors
StepCurveKeyframe()
Declaration
public StepCurveKeyframe()
StepCurveKeyframe(float time, const T& value)
Declaration
public StepCurveKeyframe(float time, const T& value)
Parameters
float
time
|
T
value
|
Fields
Time
The time of the keyframe.
Declaration
public float Time
Field Value
float
|
Value
The value of the curve at keyframe.
Declaration
public T Value
Field Value
T
|
Methods
Interpolate(const StepCurveKeyframe& a, const StepCurveKeyframe& b, float alpha, float length, T& result)
Declaration
public static void Interpolate(const StepCurveKeyframe& a, const StepCurveKeyframe& b, float alpha, float length, T& result)
Parameters
Step
|
Step
|
float
alpha
|
float
length
|
T
result
|
Returns
void
|
InterpolateFirstDerivative(const StepCurveKeyframe& a, const StepCurveKeyframe& b, float alpha, float length, T& result)
Declaration
public static void InterpolateFirstDerivative(const StepCurveKeyframe& a, const StepCurveKeyframe& b, float alpha, float length, T& result)
Parameters
Step
|
Step
|
float
alpha
|
float
length
|
T
result
|
Returns
void
|
InterpolateKey(const StepCurveKeyframe& a, const StepCurveKeyframe& b, float alpha, float length, StepCurveKeyframe& result)
Declaration
public static void InterpolateKey(const StepCurveKeyframe& a, const StepCurveKeyframe& b, float alpha, float length, StepCurveKeyframe& result)
Parameters
Step
|
Step
|
float
alpha
|
float
length
|
Step
|
Returns
void
|
operator==(const StepCurveKeyframe& other)
Declaration
public bool operator==(const StepCurveKeyframe& other) const
Parameters
Step
|
Returns
bool
|