Class GorgonKeyVector4
An animation key frame for a SharpDX Vector4
type.
Inherited Members
Namespace: Gorgon.Animation
Assembly: Gorgon.Animation.dll
Syntax
public class GorgonKeyVector4 : IGorgonKeyFrame, IGorgonCloneable<IGorgonKeyFrame>
Remarks
A key frame represents a value for an object property at a given time.
The track that the key frame is on is used to interpolate the value between key frames. This method makes it so that only a few key frames are required for an animation rather then setting a value for every time index.
Constructors
| Edit this page View SourceGorgonKeyVector4(GorgonKeyVector4)
Initializes a new instance of the GorgonKeyVector4 class.
Declaration
public GorgonKeyVector4(GorgonKeyVector4 key)
Parameters
Type | Name | Description |
---|---|---|
GorgonKeyVector4 | key | The key to copy. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown when the |
See Also
| Edit this page View SourceGorgonKeyVector4(float, Vector2)
Initializes a new instance of the GorgonKeyVector4 class.
Declaration
public GorgonKeyVector4(float time, Vector2 value)
Parameters
Type | Name | Description |
---|---|---|
float | time | The time for the key frame. |
Vector2 | value | The value to apply to the key frame. |
See Also
| Edit this page View SourceGorgonKeyVector4(float, Vector3)
Initializes a new instance of the GorgonKeyVector4 class.
Declaration
public GorgonKeyVector4(float time, Vector3 value)
Parameters
Type | Name | Description |
---|---|---|
float | time | The time for the key frame. |
Vector3 | value | The value to apply to the key frame. |
See Also
| Edit this page View SourceGorgonKeyVector4(float, Vector4)
Initializes a new instance of the GorgonKeyVector4 class.
Declaration
public GorgonKeyVector4(float time, Vector4 value)
Parameters
Type | Name | Description |
---|---|---|
float | time | The time for the key frame. |
Vector4 | value | The value to apply to the key frame. |
See Also
Properties
| Edit this page View SourceDataType
Property to return the type of data for this key frame.
Declaration
public Type DataType { get; }
Property Value
Type | Description |
---|---|
Type |
See Also
| Edit this page View SourceTime
Property to return the time at which the key frame is stored.
Declaration
public float Time { get; }
Property Value
Type | Description |
---|---|
float |
See Also
| Edit this page View SourceValue
Property to set or return the value for the key frame.
Declaration
public ref Vector4 Value { get; }
Property Value
Type | Description |
---|---|
Vector4 |
See Also
Methods
| Edit this page View SourceClone()
Function to clone an object.
Declaration
public IGorgonKeyFrame Clone()
Returns
Type | Description |
---|---|
IGorgonKeyFrame | The cloned object. |