Thread: [Include] 3DTryg Functions
View Single Post
Old 08/10/2015, 05:26 PM   #16
Crayder
Banned
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,329
Reputation: 652
Default Re: Get Point In Front 2D 3D

Quote:
Originally Posted by AbyssMorgan View Post
not important, it gives the parameters that will understand every person, not just you
You are the only person here that doesn't know what latitude and longitude is.

Also:
pawn Code:
stock CompRotationFloat(Float:rotation,&Float:cr){
    cr = rotation;
    while(cr < 0.0) cr += 360.0;
    while(cr >= 360.0) cr -= 360.0;
}
Use a while loop. One single subtraction or addition could return adverse numbers. Using a while loop will make sure the number is more than 0 and less than 360 no matter what the input is.
Crayder is offline   Reply With Quote