fix the math for rotation/dragging anchor points