Struct VectorKey
Time-value pair specifying a 3D vector for a given time.
Implements
Inherited Members
Namespace: SharpAssimp
Assembly: SharpAssimp.dll
Syntax
public record struct VectorKey : IEquatable<VectorKey>
Constructors
| Edit this page View SourceVectorKey(double, Vector3, AnimationInterpolation)
Time-value pair specifying a 3D vector for a given time.
Declaration
public VectorKey(double Time, Vector3 Value, AnimationInterpolation Interpolation = AnimationInterpolation.Linear)
Parameters
Type | Name | Description |
---|---|---|
double | Time | The time of this key. |
Vector3 | Value | The 3D vector value of this key. |
Animation |
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 |
---|---|
Animation |
Time
The time of this key.
Declaration
public double Time { readonly get; set; }
Property Value
Type | Description |
---|---|
double |
Value
The 3D vector value of this key.
Declaration
public Vector3 Value { readonly get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
Methods
| Edit this page View SourceEquals(VectorKey)
Tests equality between this key and another.
Declaration
public bool Equals(VectorKey key)
Parameters
Type | Name | Description |
---|---|---|
Vector |
key | Other key to test |
Returns
Type | Description |
---|---|
bool | True if their 3D vectors 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 >(VectorKey, VectorKey)
Tests inequality between two keys.
Declaration
public static bool operator >(VectorKey a, VectorKey b)
Parameters
Returns
Type | Description |
---|---|
bool | True if the first key's time is greater than the second key's. |
operator <(VectorKey, VectorKey)
Tests inequality between two keys.
Declaration
public static bool operator <(VectorKey a, VectorKey b)
Parameters
Returns
Type | Description |
---|---|
bool | True if the first key's time is less than the second key's. |