Code example for Transformation

Methods: getMatrix, setAlpha

0
        final float centerX = mCenterX;
        final float centerY = mCenterY;
        final Camera camera = mCamera;
 
        final float alpha = mFromAlpha;
        t.setAlpha(alpha + ((mToAlpha - alpha) * interpolatedTime));
 
        final Matrix matrix = t.getMatrix();
 
        camera.save();
        /* 
        if (mReverse) { 
            camera.translate(0.0f, 0.0f, mDepthZ * interpolatedTime); 
        } else { 
            camera.translate(0.0f, 0.0f, mDepthZ * (1.0f - interpolatedTime)); 
        } 
        */ 
        //camera.rotateX(degreesX); 
        camera.rotateY(mToDegreesY);
        //camera.rotateZ(degreesZ);