static public boolean reachingPoints(int sx, int sy, int tx, int ty) {
        if (sx > tx || sy > ty)
            return false;

        while (sx <= tx && sy <= ty) {
            if (sx == tx && sy == ty)
                return true;

            if (sx == tx) {
                return (ty - sy) % sx == 0;
            } else if (sy == ty) {
                return (tx - sx) % sy == 0;
            }
            if (tx > ty) {
                tx -= ty;
            } else {
                ty -= tx;
            }
        }

        return false;
    }
Why Did you create this class? what does it do?
src/problems/hard/ReachingPoints.java