ArcCos

Category: Arithmetics
Since engine version: 1.0 OC

Description

Calculates arc cosine of value/radius, or x = arccos(value/radius). This corresponds to cos(x) = value/radius. This function is used to calculate an angle from horizontal and vertical offsets. However, in most cases Angle() does what you need.

Syntax

int ArcCos(int value, int radius);

Parameters

value:
Length of the adjacent leg
radius:
Length of hypotenuse
See also: Angle, ArcSin, Cos
Sven2, 2001-11