View Single Post
  #2 (permalink)  
Old 06-15-2007, 01:52 AM
sheeple_rancher
Posts: n/a
Wow, Pascal. Haven't used that since the mid 1980's.

I don't remember much syntax, but here's a distance algorthm you can implement easily (and should look familiar):

distance = sqrt( (x1 - x2)^2 * (y1 - y2)^2 )

where x1,y1 is one position and x2,y2 is another on your grid.

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!