Class BezierCurve<T>.Keyframe
A single keyframe that can be injected into Bezier curve.
Inheritance
System.Object
BezierCurve<T>.Keyframe
Implements
System.IComparable
System.IComparable<BezierCurve.Keyframe<>>
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
public sealed class Keyframe : ValueType, IComparable, IComparable<BezierCurve<T>.Keyframe>
Constructors
Keyframe(Single, T)
Initializes a new instance of the BezierCurve<T>.Keyframe struct.
Declaration
public Keyframe(float time, T value)
Parameters
System.Single
time
The time. |
T
value
The value. |
Keyframe(Single, T, T, T)
Initializes a new instance of the BezierCurve<T>.Keyframe struct.
Declaration
public Keyframe(float time, T value, T tangentIn, T tangentOut)
Parameters
System.Single
time
The time. |
T
value
The value. |
T
tangentIn
The start tangent. |
T
tangentOut
The end tangent. |
Fields
TangentIn
The input tangent (going from the previous key to this one) of the key.
Declaration
[EditorOrder(2)]
[Limit(-3.40282347E+38F, 3.40282347E+38F, 0.01F)]
[Tooltip("The input tangent (going from the previous key to this one) of the key.")]
[EditorDisplay(null, "Tangent In")]
public T TangentIn
Field Value
T
|
TangentOut
The output tangent (going from this key to next one) of the key.
Declaration
[EditorOrder(3)]
[Limit(-3.40282347E+38F, 3.40282347E+38F, 0.01F)]
[Tooltip("The output tangent (going from this key to next one) of the key.")]
public T TangentOut
Field Value
T
|
Time
The time of the keyframe.
Declaration
[EditorOrder(0)]
[Limit(-3.40282347E+38F, 3.40282347E+38F, 0.01F)]
[Tooltip("The time of the keyframe.")]
public float Time
Field Value
System.Single
|
Value
The value of the curve at keyframe.
Declaration
[EditorOrder(1)]
[Limit(-3.40282347E+38F, 3.40282347E+38F, 0.01F)]
[Tooltip("The value of the curve at keyframe.")]
public T Value
Field Value
T
|
Methods
CompareTo(BezierCurve<T>.Keyframe)
Declaration
public int CompareTo(BezierCurve<T>.Keyframe other)
Parameters
BezierCurve.Keyframe<>
other
|
Returns
System.Int32
|
CompareTo(Object)
Declaration
public int CompareTo(object obj)
Parameters
System.Object
obj
|
Returns
System.Int32
|
ToString()
Declaration
public override string ToString()
Returns
System.String
|