Code example for Transformation

Methods: getMatrix

0
 
		final float centerX = mCenterX;
		final float centerY = mCenterY;
		final Camera camera = mCamera;
 
		final Matrix matrix = t.getMatrix();
 
	    camera.save();
	     
	    // Increase the factor in front of centerX to push it further way 
		camera.translate(0.0f, 0.0f, (float)(1*centerX * Math.sin(radians)));  // Bounce it away from the user too
	    camera.rotateY(degrees);
	    camera.getMatrix(matrix);
	    camera.restore();
 
	    matrix.preTranslate(-centerX, -centerY);
	    matrix.postTranslate(centerX, centerY);
 
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java