galaxykate / BotPrintEvolved

0 stars 1 forks source link

Adding Position class and function getClosestEdgePosition #36

Closed galaxykate closed 10 years ago

galaxykate commented 10 years ago

New class! Position An edge position along an edge, has pct, offset, and edge, and thetaOffset (for rotation), but is also a valid Transform. refresh() -> sets it from the current position of the edge getEdgePoint -> get the point on the edge (ignore the offset) drawCircle -> useful drawing function, shows both the point, it's rotation, and the edge point it's at.

bot.getClosestEdgePosition(target) -> return the edge position closest to this point