Distance

Blitz3D Forums/Blitz3D Programming/Distance

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

In these days, calculating is so much faster than writing stuff in memory. I prefer this:
dist# = Sqr((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1))
So I avoid using temporary variables.
Actually the fastest option is not to code in Blitz. It's just dead slow.