The following functions are useful for working with angles and performing various trigonometric calculations.
Converts angle units from radians into degrees.
Syntax: | degrees(Angle) |
Arguments: |
|
Examples: |
|
Converts angle units from degrees into radians.
Syntax: | radians(Angle) |
Arguments: |
|
Example: |
|
Returns the cosine of a given angle.
Syntax: | cos(Angle) |
Arguments: |
|
Examples: |
|
Returns the sine of a given angle.
Syntax: | sin(Angle) |
Arguments: |
|
Examples: |
|
Returns the tangent of a given angle.
Syntax: | tan(Angle) |
Arguments: |
|
Examples: |
|
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: |
|
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: |
|
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: |
|
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.
Syntax: | atan2(x, y) |
Arguments: |
|
Examples: |
|