If anyone knows the standard linear distance formula, please post it here for me. I've lost my math notes and I need it for the procedure I'm working on! Thanks!
-LoW
ID:268497
![]() Aug 14 2004, 6:14 pm
|
|
Nubstar wrote:
:o A few things worth noting:
|
Many thanks. Is there a particular reason the x^y function is slower than long multiplication? Well first of all ^ isn't really slow but it's the exclusive or operator :). ** is expensive since I'm sure it supports decimal values in the exponent so odds are it doesn't do a simple multiplication exansion. |
sqrt((x2-x1)^2 + (y2-y1)^2)