How many times are you expecting to call them?
Basically, in this case, it doesn't matter unless your doing millions of calls.
If you're desperate to save time try this :
d=Sqr((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1))
Quicker but more readable?
<edit> and still only saves over millions of repetitions.
Basically, in this case, it doesn't matter unless your doing millions of calls.
If you're desperate to save time try this :
d=Sqr((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1))
Quicker but more readable?
<edit> and still only saves over millions of repetitions.