Difference between revisions of "SHIP:Sail:atan"

From Serious Documentation
Jump to: navigation, search
(Created page with "__NOTOC__ {{SailFuncTableStart|}}<onlyinclude> |{{SailFunc|atan}}||{{DataType|Float}}||style="text-align:center;"|v5.0.204||Returns the radians angle of the specified value{{v...")
 
Line 7: Line 7:
 
*[[SHIP:Sail:Functions|Sail Functions]]
 
*[[SHIP:Sail:Functions|Sail Functions]]
 
*[[SHIP:Sail:Numeric Functions|Sail Numeric Functions]]
 
*[[SHIP:Sail:Numeric Functions|Sail Numeric Functions]]
*[[SHIP:Sail:Trigonomic Functions|Sail Trigonomic Functions]]
+
*[[SHIP:Sail:Trigonometric Functions|Sail Trigonometric Functions]]
  
 
== Prototype ==
 
== Prototype ==
Line 43: Line 43:
 
|<code>{{SailFunc|toDegrees}}({{SailFunc|atan}}(1000000f));</code> || 90 ||
 
|<code>{{SailFunc|toDegrees}}({{SailFunc|atan}}(1000000f));</code> || 90 ||
 
|}
 
|}
 +
 +
[[Categories:Trigonometric Functions]]

Revision as of 15:16, 4 October 2016

Function Returns Introduced Description
atan Float v5.0.204 Returns the radians angle of the specified valueBadge SHIPv5.gif

See Also:

Prototype

Float atan(Float value);

Parameters/Return Value

Parameter Data Type Description
value Float the value to take the arctan of
Return Float atan(value)

Detailed Description

The atan() function returns the arctan of the supplied value in radians. If you want to return an angle in degrees you can use toDegrees(atan(value))

Examples

Example Result Notes
toDegrees(atan(-1)); -45
toDegrees(atan(sqrt(3))); 60
toDegrees(atan(sqrt(3)/3)); 30
toDegrees(atan(1000000f)); 90

Categories:Trigonometric Functions