Code example for Camera

0
	} 
	 
	@Override 
	public void initialize(int width, int height, int parentWidth, int parentHeight) {
		super.initialize(width, height, parentWidth, parentHeight);
		mCamera = new Camera();
	} 
 
	@Override 
	protected void applyTransformation(float interpolatedTime, Transformation t) {
		float degrees = mFromDegrees + ((mToDegrees - mFromDegrees) * interpolatedTime);
	    double radians = Math.PI / 2 * interpolatedTime;
	    if(this.mFromDegrees != 0) {
	    	radians += (Math.PI / 2);
	    } 
 
		final float centerX = mCenterX;
		final float centerY = mCenterY;
		final Camera camera = mCamera;
 
		final Matrix matrix = t.getMatrix();