Skip to main content


Returns an angle from a tangent


Device + Agent


Name Type Description
tangent Float A tangent value


Float — the angle in radians


This function returns the arc-tangent of the passed tangent — the ratio of the opposite and adjacent sides of a right-angled triangle. The arc-tangent 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