Skip to main content

math.asin(sine)

Returns an angle from a sine

Availability

Device + Agent

Parameters

Name Type Description
sine Float A sine value

Returns

Float — the angle in radians

Description

This function returns the arc-sine of the passed sine — the ratio of the opposite side and the hypotenuse of a right-angled triangle. The arc-sine is the size of the angle between the adjacent side and the hypotenuse of the same triangle.

The angle is given in radians. To convert it to degrees, multiple the angle value by 180 and divide by π, represented in Squirrel by the constant PI.

Example Code