﻿ Trigonometric Functions
Nevron Open Vision Documentation
Trigonometric Functions
Syntax Description Example
ACOS(nNumber) Returns the arccosine of number, for example, the angle (in radians) whose cosine is number.

ACOS(0)

Returns: Returns: PI/2

ANG360(nAngle) Normalizes an angle's range to be [0; 2PI). Angle is specified in radians. ANG360(1.4 + 2 * PI())
Returns: 1.4
ASIN(nNumber) Returns the arcsine of a number, for example, the angle (in radians) whose sine is number. ASIN(1)
Returns: PI/2
ATAN2(nmY,nmX) Returns the angle (in radians) between the vector represented by x, y and the direction of the x-axis.

ATAN2(1,1)
Returns: PI/4

ATAN2(1,SQRT(3))
Returns: PI/6

ATAN(nNumber) Returns the arctangent of a number, for example, the angle (in radians) whose tangent is number. The resulting angle is in the range [-PI/2; PI/2]

ATAN(1)
Returns: PI/4

COS(nAngle) Returns the cosine of an angle (in radians) COS(0)
Returns: 1
COSH(nAngle) Returns the hyperbolic cosine of an angle.

COSH(PI()/4)
Returns: 1.3246

PI() Returns the mathematical constant pi, which is 3.1415926535898. PI()
Returns: 3.1415926535898
SIN(nAngle) Returns the sine of an angle (in radians) SIN(0)
Returns: 0
SINH(nAngle) Returns the hyperbolic sine of an angle (in radians)

SINH(PI()/4)
Returns: 0.8687

TAN(nAngle) Returns the tangent of an angle (in radians)

TAN(PI()/4)
Returns: 1

TANH(nAngle) Returns the hyperbolic tangent of an angle (in radians)

TANH(-PI()/4)
Returns: -0.6558