Trigonometric Functions
The following functions are useful for working with angles and performing various trigonometric calculations.
degrees
Converts angle units from radians into degrees.
Syntax: | degrees(Angle) |
Arguments: |
|
Examples: |
|
radians
Converts angle units from degrees into radians.
Syntax: | radians(Angle) |
Arguments: |
|
Example: |
|
cos
Returns the cosine of a given angle.
Syntax: | cos(Angle) |
Arguments: |
|
Examples: |
![]() |
sin
Returns the sine of a given angle.
Syntax: | sin(Angle) |
Arguments: |
|
Examples: |
![]() |
tan
Returns the tangent of a given angle.
acos
Returns the arccosine—the inverse function of the cosine—of a given number. The returned angle is given in radians within the range 0 to PI.
Syntax: | acos(Number) |
Arguments: |
|
Examples: |
|
asin
Returns the arcsine—the inverse function of the sine—of a given number. The returned angle is given in radians within the range -PI/2 to PI/2.
Syntax: | asin(Number) |
Arguments: |
|
Examples: |
|
atan
Returns the arctangent—the inverse function of the tangent— of a given number. The returned angle is given in radians within the range -PI/2 to PI/2.
Syntax: | atan(Number) |
Arguments: |
|
Examples: |
|
atan2
Returns the arctangent of y/x, using the signs of both arguments to determine the quadrant of the return value. The arctangent is the angle from the origin to the vector (x,y). The returned angle is given in radians within the range -PI to PI.