atan: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *R([a-z ])" to "$1 - r$2")
Line 32: Line 32:
|p1= x: [[Number]]
|p1= x: [[Number]]


|r1= [[Number]] - Result is in degrees
|r1= [[Number]] - result is in degrees


|x1= <sqf>_degrees = atan 1; // 45</sqf>
|x1= <sqf>_degrees = atan 1; // 45</sqf>

Revision as of 16:47, 8 November 2023

Hover & click on the images for description

Description

Description:
Returns the arcus tangens.

atan.jpg
Alias:
atg
Groups:
Math - Geometry

Syntax

Syntax:
atan x
Parameters:
x: Number
Return Value:
Number - result is in degrees

Examples

Example 1:
_degrees = atan 1; // 45

Additional Information

See also:
atg atan2

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note