Raised This Month: $ Target: $400
 0% 

get_distance_f problem [ solved ]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 10-22-2014 , 09:51   Re: get_distance_f problem
Reply With Quote #7

Quote:
Originally Posted by red_bull2oo6 View Post
@fysiks i'll try your idea tonight when i reach home.
@claudiuhsk i suk at c++ and i don't really understand.
@avril-lavighe i think i tried it..

i'll edit later. ty for your answers.
PHP Code:
stock math_CancelApplicate(Vector[3])
{
  
Vector[2] = 0;
}

stock math_CancelApplicateF(Float:Vector[3])
{
  
Vector[2] = 0.0;
}

stock math_Distance2D(VectorA[3], VectorB[3])
{
  
math_CancelApplicate(VectorA);
  
math_CancelApplicate(VectorB);

  return 
get_distance(VectorAVectorB);
}

stock Float:math_DistanceF2D(Float:VectorA[3], Float:VectorB[3])
{
  
math_CancelApplicateF(VectorA);
  
math_CancelApplicateF(VectorB);

  return 
get_distance_f(VectorAVectorB);

__________________
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
 



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 17:35.


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