Struct MeshKey
Binds an anim mesh (referenced by an index) to a specific point in time.
Implements
Inherited Members
Namespace: SharpAssimp
Assembly: SharpAssimp.dll
Syntax
public record struct MeshKey : IEquatable<MeshKey>
Constructors
| Edit this page View SourceMeshKey(double, int)
Binds an anim mesh (referenced by an index) to a specific point in time.
Declaration
public MeshKey(double Time, int Value)
Parameters
Type | Name | Description |
---|---|---|
double | Time | The time of this key. |
int | Value | Index of the anim mesh that corresponds to this keyframe. |
Properties
| Edit this page View SourceTime
The time of this key.
Declaration
public double Time { readonly get; set; }
Property Value
Type | Description |
---|---|
double |
Value
Index of the anim mesh that corresponds to this keyframe.
Declaration
public int Value { readonly get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
| Edit this page View SourceEquals(MeshKey)
Tests equality between this key and another.
Declaration
public bool Equals(MeshKey key)
Parameters
Type | Name | Description |
---|---|---|
MeshKey | key | Other key to test |
Returns
Type | Description |
---|---|
bool | True if their indices 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 >(MeshKey, MeshKey)
Tests inequality between two keys.
Declaration
public static bool operator >(MeshKey a, MeshKey b)
Parameters
Type | Name | Description |
---|---|---|
MeshKey | a | The first key |
MeshKey | b | The second key |
Returns
Type | Description |
---|---|
bool | True if the first key's time is greater than the second key's. |
operator <(MeshKey, MeshKey)
Tests inequality between two keys.
Declaration
public static bool operator <(MeshKey a, MeshKey b)
Parameters
Type | Name | Description |
---|---|---|
MeshKey | a | The first key |
MeshKey | b | The second key |
Returns
Type | Description |
---|---|
bool | True if the first key's time is less than the second key's. |