MC-Basic:ATAN2

From SoftMC-Wiki
Revision as of 16:00, 13 December 2010 by Arwiebe (talk | contribs) (Created page with '{{MC-Basic |SHORT FORM= |SYNTAX= Atan2(''<expression>, <expression>'') |AVAILABILITY= All versions |DESCRIPTION= ATAN2 is used when it is necessary to know not only the absol…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

ATAN2 is used when it is necessary to know not only the absolute value of the angle, but also the quadrant. The first expression is the value on the y axis and the second is the value on the x axis. The result gives the real angle in the range
+/- p radians.

Syntax

Atan2(<expression>, <expression>)

Availability

All versions

Type

Double

Range

+/- MaxDouble

Scope

Configuration, Task or Terminal

Limitations

Read-Only

Examples

?Atan2(1, -1)                                              ‘returns 0.75*p

?Atan2(-1, 1)                                              ‘returns -0.25*p

See Also