public final class FrameRotationQueue
extends java.lang.Object
| Constructor and Description |
|---|
FrameRotationQueue() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
pollRotationMatrix(float[] matrix,
long timestampUs)
Copies the rotation matrix with the greatest timestamp which is less than or equal to the given
timestamp to
matrix. |
void |
reset()
Removes all of the rotations and forces rotations to be recentered.
|
void |
setRotation(long timestampUs,
float[] angleAxis)
Sets a rotation for a given timestamp.
|
public void setRotation(long timestampUs,
float[] angleAxis)
timestampUs - Timestamp of the rotation.angleAxis - Angle axis orientation in radians representing the rotation from camera
coordinate system to world coordinate system.public void reset()
public boolean pollRotationMatrix(float[] matrix,
long timestampUs)
matrix. Removes all older rotations and the returned one from the queue.
Does nothing if there is no such rotation.matrix - A float array to hold the rotation matrix.timestampUs - The time in microseconds to query the rotation.matrix.