Struct QuaternionKey
Time-value pair specifying a rotation for a given time.
Implements
Inherited Members
Namespace: SharpAssimp
Assembly: SharpAssimp.dll
Syntax
public record struct QuaternionKey : IEquatable<QuaternionKey>
Constructors
| Edit this page View SourceQuaternionKey(double, Quaternion, AnimationInterpolation)
Time-value pair specifying a rotation for a given time.
Declaration
public QuaternionKey(double Time, Quaternion Value, AnimationInterpolation Interpolation = AnimationInterpolation.Linear)
Parameters
| Type | Name | Description |
|---|---|---|
| double | Time | The time of this key. |
| Quaternion | Value | The rotation of this key. |
| AnimationInterpolation | Interpolation | The interpolation setting of this key. |
Properties
| Edit this page View SourceInterpolation
The interpolation setting of this key.
Declaration
public AnimationInterpolation Interpolation { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| AnimationInterpolation |
Time
The time of this key.
Declaration
public double Time { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Value
The rotation of this key.
Declaration
public Quaternion Value { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| Quaternion |
Methods
| Edit this page View SourceEquals(QuaternionKey)
Tests equality between this key and another.
Declaration
public bool Equals(QuaternionKey key)
Parameters
| Type | Name | Description |
|---|---|---|
| QuaternionKey | key | Other key to test |
Returns
| Type | Description |
|---|---|
| bool | True if their rotations are equal. |
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Overrides
Operators
| Edit this page View Sourceoperator >(QuaternionKey, QuaternionKey)
Tests inequality between two keys.
Declaration
public static bool operator >(QuaternionKey a, QuaternionKey b)
Parameters
| Type | Name | Description |
|---|---|---|
| QuaternionKey | a | The first key |
| QuaternionKey | b | The second key |
Returns
| Type | Description |
|---|---|
| bool | True if the first key's time is greater than the second key's. |
operator <(QuaternionKey, QuaternionKey)
Tests inequality between two keys.
Declaration
public static bool operator <(QuaternionKey a, QuaternionKey b)
Parameters
| Type | Name | Description |
|---|---|---|
| QuaternionKey | a | The first key |
| QuaternionKey | b | The second key |
Returns
| Type | Description |
|---|---|
| bool | True if the first key's time is less than the second key's. |