0 Members and 1 Guest are viewing this topic.

Instead of using slope and a flag, would it not be easier to use just an angle instead?

Lbl TanReturn sin(r1)*256//cos(r1)

Why *256? tan(angle) is defined as y/x, and with sin(angle) and cos(angle) being y/r and x/r respectively, tan(angle) can also be defined as sin(angle)/cos(angle), so i dont see why you would multiply sin(angle) by 256 first.