2D distance between points

Posted By: Elektron

2D distance between points - 03/20/10 10:17

There is any function who makes this?

Code:
var distance_2D=sqrt(pow((x1-x2 ),2)+pow((y1-y2),2));



Thanks in advance
Posted By: DJBMASTER

Re: 2D distance between points - 03/20/10 10:18

vec_dist
Posted By: Elektron

Re: 2D distance between points - 03/20/10 10:24

Thanks for the instant reply DJBMASTER laugh
© 2024 lite-C Forums