Raised This Month: $ Target: $400
 0% 

sqrt, pow functions


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 01-18-2014 , 05:52   Re: sqrt, pow functions
Reply With Quote #3

Quote:
Originally Posted by hornet View Post
What is it that is making you incapable of using them?
Code:
new Float:disance = sqrt(pow(plrOrigin[0] - entOrigin[0]) + pow(plrOrigin[1] + entOrigin[1]) + pow(plrOrigin[2] + entOrigin[2]))

Tried this, but it not worked, so I start find ready function in XS.inc.
Reading XS.. Finding some interesting for me there =)

P.S. I need compute distance between to vecs.

Last edited by ZASTRELIS; 01-18-2014 at 05:59.
ZASTRELIS is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode