gaza165 Posted March 3, 2009 Share Posted March 3, 2009 HI all, I am allowing a user to enter four co-ordinates North, East, South and West. What i need to know is what algorithm to use you find the x and y co-ordinates from the map integers. East = 80 South = 40 West = 10 North = 20 Thanks very much. Garry Link to comment https://forums.phpfreaks.com/topic/147733-need-help-with-x-and-y-co-ordinates/ Share on other sites More sharing options...
lonewolf217 Posted March 3, 2009 Share Posted March 3, 2009 shouldnt they only be allowed to enter 2 coordinates ? how can something be slightly north if it is already slightly south ? Link to comment https://forums.phpfreaks.com/topic/147733-need-help-with-x-and-y-co-ordinates/#findComment-775600 Share on other sites More sharing options...
cooldude832 Posted March 3, 2009 Share Posted March 3, 2009 Well Lets assume that the north west most north north and most west is (x,y)(0,0) y = the current y position + the amount south - the amount north x = the current x position + the amount east- the amount west Link to comment https://forums.phpfreaks.com/topic/147733-need-help-with-x-and-y-co-ordinates/#findComment-775603 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.