Skip to main content

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

NameTypeDescription

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.
Thank you for your feedback!

Was this page helpful?