FrameRotationQueue { public void reset() { rotations.clear(); recenterMatrixComputed = false; } FrameRotationQueue(); void setRotation(long timestampUs, float[] angleAxis); void reset(); boolean pollRotationMatrix(float[] matrix, long timestampUs); static void computeRecenterMatrix(float[] recenterMatrix, float[] rotationMatrix);  }
@Test public void testConvertsAngleAxisToRotationMatrix() throws Exception { doTestAngleAxisToRotationMatrix( 0, 1, 0, 0); frameRotationQueue.reset(); doTestAngleAxisToRotationMatrix( 1, 1, 0, 0); frameRotationQueue.reset(); doTestAngleAxisToRotationMatrix( 1, 0, 0, 1); doTestAngleAxisToRotationMatrix( -1, 0, 1, 0); doTestAngleAxisToRotationMatrix( 1, 1, 1, 1); }