Struct Binary.TrajectoryFragment
A trajectory fragment contains information necessary to perform similarity calculations between trajectories.
Namespace: Unity.Kinematica
Assembly: solution.dll
Syntax
public struct Binary.TrajectoryFragment
Remarks
A trajectory is simply a sequence for root joint transforms forming a continuous path. Trajectories can either be expressed in world space according to the original animation data or relative to a sampling time.
A trajectory 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 features that includes root velocity, forward direction and optionally root displacements.
The main purpose of this class is to: * Create trajectory fragments from poses in the motion library. * Perform similarity calculation between trajectory fragments.
Fields
| Name | Description |
|---|---|
| array | Denotes the feature array of this trajectory fragment. |
| metricIndex | Denotes the metric index that this trajectory fragment belongs to. |
| samplingTime | Denotes the sampling time that this trajectory fragment was generated from. |
Properties
| Name | Description |
|---|---|
| Invalid | Represents an invalid trajectory fragment. |
| IsValid | Determines whether or not this trajectory fragment is valid. |
| this[int] | Gives access to the individual pose fragment features. |
| length | Denotes the size of the feature array. |
Methods
| Name | Description |
|---|---|
| Dispose() | Disposes the underlying feature array. |
| Equals(TrajectoryFragment, float) | Determines whether a two trajectory fragments are equal. |
| GetRootDisplacement(ref Binary, int) | Returns root displacement of a trajectory sample, relative to the root transform of the character at fragment sampling time |
| GetRootForward(ref Binary, int) | Returns root forward vector of a trajectory sample, relative to the root transform of the character at fragment sampling time |
| GetRootVelocity(ref Binary, int) | Returns root velocity of a trajectory sample, relative to the root transform of the character at fragment sampling time |