Code example for Matrix

Methods: mapRectreset

        // use a rectangle at 0,0 to make sure we don't run into issues with scaling 
        r.set(0, 0, w, h);
        final Matrix m = mTempMatrix;
        transformMatrix(m, view);
        r.offset(view.getLeft(), view.getTop());
        // Straighten coords if rotations flipped them 
        if (r.right < r.left) {
            final float f = r.right;
            r.right = r.left;
            r.left = f;
        if (r.bottom < {
            final float f =;
   = r.bottom;
Contextual code suggestions in your IDE  Get Codota for Java