BinaryArctanOperator
Type
operator
Summary
Binary arctan operator.
Syntax
atan2(<yCoord>,<xCoord>)
Description
The binary arctan operator returns the angle in radians between the x-axis and the line from the origin to the point (xCoord, yCoord). The angle returned has absolute value less than pi: âÏ < arctan2(y, x) ⤠Ï.
Parameters
Name | Type | Description |
---|---|---|
yCoord | An expression that evaluates to a number. | |
xCoord | An expression that evaluates to a number. |
Examples
variable tVar as Number
put atan2(-1,-1) into tVar --tVar contains â3Ï/4.
variable tVar as Number
put the binary arctangent of -1 and -1 into tVar --tVar contains â3Ï/4.