October 2018
Intermediate to advanced
464 pages
15h 17m
English
As stated previously, we will continue, not from the previous recipe, but from the Applying the projection and camera view while drawing recipe. Open MainActivity.java and follow these steps:
private float mCenterX=0; private float mCenterY=0;
private float[] mRotationMatrix = new float[16];public volatile float mAngle;public void setAngle(float angle) { mAngle = angle;}
float[] tempMatrix = new float[16];Matrix.setRotateM(mRotationMatrix, 0, mAngle, 0, 0, -1.0f);Matrix. ...