Skip to content

dos_atan2

Dale Fugier edited this page Nov 1, 2023 · 3 revisions

Calculates the arctangent (inverse tangent) of y/x.

Syntax

(dos_atan2 y x)

Parameters

y

The y value.

x

The x value.

Returns

The arctangent of y/x (if x equals 0, dos_atan2 returns π/2 if y is positive, -π/2 if y is negative, or 0 if y is 0) if successful.

nil on error.

Example

Command: (dos_atan2 0.5 5.0)
0.0996687
Clone this wiki locally