Struct Binary.PoseFragment
A pose fragment contains information necessary to perform similarity calculations between animation poses.
Namespace: Unity.Kinematica
Syntax
public struct PoseFragment : IDisposable
Remarks
A pose fragment can be constructed from any animation pose contained in the motion library. It requires a metric in order to extract the relevant information. The similarity calculation uses a weighted sum of character space joint positions and joint velocities over a user defined time horizon.
The main purpose of this class is to:
- Create pose fragments from poses in the motion library.
- Perform similarity calculation between pose fragments.
Fields
array
Denotes the feature array of this pose fragment.
Declaration
public NativeArray<float3> array
Field Value
Type | Description |
---|---|
NativeArray<float3> |
metricIndex
Denotes the metric index that this pose fragment belongs to.
Declaration
public Binary.MetricIndex metricIndex
Field Value
Type | Description |
---|---|
Binary.MetricIndex |
samplingTime
Denotes the sampling time that this pose fragment was generated from.
Declaration
public SamplingTime samplingTime
Field Value
Type | Description |
---|---|
SamplingTime |
Properties
Invalid
Represents an invalid pose fragment.
Declaration
public static Binary.PoseFragment Invalid { get; }
Property Value
Type | Description |
---|---|
Binary.PoseFragment |
IsValid
Determines whether or not this pose fragment is valid.
Declaration
public bool IsValid { get; }
Property Value
Type | Description |
---|---|
Boolean |
Item[Int32]
Gives access to the individual pose fragment features.
Declaration
public float3 this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
Int32 | index |
Property Value
Type | Description |
---|---|
float3 |
length
Denotes the size of the feature array.
Declaration
public int length { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
Dispose()
Disposes the underlying feature array.
Declaration
public void Dispose()
Equals(Binary.PoseFragment, Single)
Determines whether two pose fragments are equal.
Declaration
public bool Equals(Binary.PoseFragment instance, float eps)
Parameters
Type | Name | Description |
---|---|---|
Binary.PoseFragment | instance | The pose fragment to compare against the current pose fragment. |
Single | eps | Tolerance value to indicate by how much the result can diverge before being considered unequal. |
Returns
Type | Description |
---|---|
Boolean | True if the pose fragment passed as argument is equal to the current pose fragment; otherwise, false. |