Code example for Transformation

Methods: clear, set

0
    } 
 
    public Transformation obtainTransformation() {
        if (!mFreeTransform.isEmpty()) {
            Transformation t = mFreeTransform.pop();
            t.clear();
            return t;
        } 
        return new Transformation();
    } 
 
    public void freeTransformation(Transformation freeTransformation) {
        mFreeTransform.push(freeTransformation);
    } 
 
    public Transformation getTransformation() {
        return mTransformation;
    } 
 
    public Transformation pushTransform() {
        Transformation trans = obtainTransformation();
        trans.set(mTransformation);
        mTransformStack.push(trans);
        return mTransformation;
    } 
 
    public void popTransform() {