Cos

Category: Arithmetics
Since engine version: 4.6.5.0 CP (extended in 4.9.5.0 CE)

Description

Returns cos(iAngle) * iRadius.

Syntax

int Cos (int iAngle, int iRadius, int iPrec);

Parameters

iAngle:
Angle in degrees
iRadius:
Radius
iPrec:
[opt] If specified, the angle will be divided by this value. An angle of 445° and a precision value of 10 will thus result in a more precise angle of 45,5° internally.
See also: Angle, Sin
springer, April 2002
Clonk-Karl, September 2004