Code example for RectF

Methods: union

        final RectF after = mAfter;
        computeRect(after, view);
                (int) Math.floor(after.left),
                (int) Math.floor(,
                (int) Math.ceil(after.right),
                (int) Math.ceil(after.bottom));
    private void computeRect(final RectF r, View view) {
        // compute current rectangle according to matrix transformation 
        final float w = view.getWidth();
        final float h = view.getHeight();
        // use a rectangle at 0,0 to make sure we don't run into issues with scaling 
Experience pair programming with AI  Get Codota for Java