More stuff then...
Assuming A is the 'roid pointed at, and B is the one to turn to:
If Ax > Bx AND Ay > Oy AND By > Oy TURN counterclockwise.
For EVERY one of those comparisons that returns FALSE, change the direction of the turn.
-- Assuming a clockwise turn is a positive turn, then
function TurnDirection(Ax, Ay, Bx, By, Ox, Oy)
TurnDirectionMultiplier = -1
if Ax > Bx then
break
else
TurnDirectionMultiplier = TurnDirectionMultiplier * -1
end
if Ay > Oy then
break
else
TurnDirectionMultiplier = TurnDirectionMultiplier * -1
end
if By > Oy then
break
else
TurnDirectionMultiplier = TurnDirectionMultiplier * -1
end