BinaryArctanOperator

Typeoperator
DictionaryLCB
LibraryLiveCode Builder
Syntax
atan2(<yCoord>,<xCoord>)
Associationscom.livecode.math
Summary

Binary arctan operator.

Parameters
NameTypeDescription
yCoord

An expression that evaluates to a number.

xCoord

An expression that evaluates to a number.

Example
    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.
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) ‰?? ì?.

Tagsmath