note Help Needed
This wiki is the result of an ongoing community effort — thank you all for helping!
If you want to provide changes to this page then please click here.
atan
warning
This function starts with a lowercase letter.
Description
Get the inversed value of a tangent in degrees. In trigonometrics, arc tangent is the inverse operation of tangent. Notice that because of the sign ambiguity, the function cannot determine with certainty in which quadrant the angle falls only by its tangent value. See atan2 for an alternative that takes a fractional argument instead.
Name | Description |
---|---|
Float:value | value whose arc tangent is computed. |
Returns
The angle in degrees, in the interval [-90.0,+90.0].
Examples
//The arc tangent of 1.000000 is 45.000000 degrees.
public OnGameModeInit()
{
new Float:param, Float:result;
param = 1.0;
result = atan(param);
printf("The arc tangent of %f is %f degrees.", param, result);
return 1;
}
Related Functions
- floatsin: Get the sine from a specific angle.
- floatcos: Get the cosine from a specific angle.
- floattan: Get the tangent from a specific angle.
- asin: Get the inversed value of a sine in degrees.
- acos: Get the inversed value of a cosine in degrees.
- atan2: Get the multi-valued inversed value of a tangent in degrees.