Code example for Matrix

Methods: mapPointsmapVectors

0
    } 
 
    public void actionMove(int handle, float x, float y, Oval oval) {
        float[] point = new float[] {
                x, y };
        mScrToImg.mapPoints(point);
        x = point[0];
        y = point[1];
 
        // Test if the matrix is swapping x and y 
        point[0] = 0;
        point[1] = 1;
        mScrToImg.mapVectors(point);
        boolean swapxy = (point[0] > 0.0f);
 
        int sign = 1;
        switch (handle) {
            case HAN_CENTER:
                float ctrdx = mDownX - mDownCenterX;
                float ctrdy = mDownY - mDownCenterY;
Stop searching for code, let great code find you!  Add Codota to your java IDE