getExtrapolatedState

getExtrapolatedState

Method of Antilatency.Alt.Tracking.ITrackingCotask
Calculates an extrapolation of the tracked object's kinematic state into near future.
State getExtrapolatedState(​Math.floatP3Q placement, float deltaTime);

Parameters

Math.floatP3Q placement
The tracking placement to apply to the tracker position. This is a tridimensional pose that represents the position (in meters) and orientation (a unit quaternion) of the tracker in the tracked object's local coordinates.
float deltaTime
Extrapolation time in seconds. The larger this value is, the less certain the extrapolation result will be. It's rarely beneficial to extrapolate further than a second to the future.

Return value

State
The kinematic state the tracked object will likely have at the specified time in the future. Any subsequent call will likely return a slightly different kinematic state.