Function
#5

Yeah, that works but you can make it simpler:
pawn Код:
//meter
distance = floatsqroot((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2) + (z1 - z2) * (z1 - z2)) / 3.2808;  
//kilometer
distance = floatsqroot((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2) + (z1 - z2) * (z1 - z2)) / 3.2808 / 1000.0;
Reply


Messages In This Thread
Function - by BaubaS - 11.03.2012, 18:52
Re: Function - by coole210 - 11.03.2012, 18:59
Re: Function - by Stylock - 11.03.2012, 19:08
Re: Function - by BaubaS - 11.03.2012, 19:32
Re: Function - by Stylock - 11.03.2012, 19:44
Re: Function - by BaubaS - 11.03.2012, 19:57
Re: Function - by Vince - 11.03.2012, 20:05
Re: Function - by Stylock - 11.03.2012, 20:28

Forum Jump:


Users browsing this thread: 1 Guest(s)