int dy/y = int K*dx