acos

warning

This function starts with lowercase letter.

Description

Get the inversed value of an arc cosine in radians.

NameDescription
Float:valuethe input in arc cosine.

Returns

Principal arc cosine of x, in the interval [0, pi] radians. One radian is equivalent to 180/PI degrees.

Examples

//The arc cosine of 0.500000 is 60.000000 degrees.
public OnGameModeInit()
{
new Float:param, Float:result;
param = 0.5;
result = acos (param) * 180.0 / PI;
printf ("The arc cosine of %f is %f degrees.\n", param, result);
return 0;
}

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.