2017-04-26 1 views
0

내 코드 :android.opengl.Matrix.rotateM의 결과가 잘못되었습니다.

  float[] rotatePlus90Mtx = identityMatrix.clone(); 
      Matrix.setRotateM(rotatePlus90Mtx, 0, 90, 0, 0, 1); 
      Log.e(TAG, "RotatePlus90 Matrix: "); 
      dumpMatrix(rotatePlus90Mtx); 

결과 : 1.0

가 왜

-4.371139E-8 1.0 0.0 0.0
-1.0 -4.371139E-8 0.0 0.0

0.0 0.0 1.0 0.0

0.0 0.0 0.0 -4.371139E- 8? 정확하게 0이어야합니까?

답변

관련 문제