ArcSin

Category: Arithmetics
Since engine version: 1.0 OC

Description

Calculates arc sine of value/radius, or x = arcsin(value/radius). This corresponds to sin(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 ArcSin(int value, int radius);

Parameters

value:
Length of the opposite leg
radius:
Length of hypotenuse
See also: Angle, ArcCos, Sin
Sven2, 2001-11