Reputation: 4201
My code:
float[] rotatePlus90Mtx = identityMatrix.clone();
Matrix.setRotateM(rotatePlus90Mtx, 0, 90, 0, 0, 1);
Log.e(TAG, "RotatePlus90 Matrix: ");
dumpMatrix(rotatePlus90Mtx);
the result:
-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 1.0
why there is -4.371139E-8? should be 0 correctly?
Upvotes: 0
Views: 168
Reputation: 12229
It pretty much is zero; floating point numbers are not precise ...
Worth a read:
Upvotes: 3