This wiki is a copy of the original Oblivion CS wiki created and maintained by the UESP.net. See CSwiki:Copy Notice for more info.

Difference between revisions of "ATan"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
imported>Wrye
m (Atan moved to ATan: Follow OBSE docs capitialization.)
 
(8 intermediate revisions by 4 users not shown)
Line 2: Line 2:


'''Syntax:'''
'''Syntax:'''
  asin [float]
  atan [float]
or
datan [float]


Returns the arctangent of a number (i.e. the angle whose tangent this is)
Returns the arctangent of a number (i.e. the angle whose tangent this is)
Line 14: Line 16:
==Notes==
==Notes==


*From v0005, all OBSE trigonometric functions take and return degrees. Versions of the functions which accept radians are still available by prefixing the function name with an r. (i.e. ratan)
*This function can be used in a mathematical formula (a + atan b), but a mathematical formula will not compile as the arguement for this function (atan (a + b) doesn't work).
*This function can be used in a mathematical formula (a + atan b), but a mathematical formula will not compile as the arguement for this function (atan (a + b) doesn't work).
*atan a + b = ( atan a ) + b
*atan a + b = ( atan a ) + b
Line 24: Line 27:
*[[asin]]
*[[asin]]
*[[acos]]
*[[acos]]
*[[atan2]]


[[Category: OBSE Functions]]
[[Category: Functions]]
[[Category:OBSE_Math_Functions]]
[[Category: Functions (OBSE)]]
[[Category: Math Functions]]
[[Category: Math Functions (OBSE)]]

Latest revision as of 22:16, 2 June 2008

A command for Oblivion Script Extender

Syntax:

atan [float]

or

datan [float]

Returns the arctangent of a number (i.e. the angle whose tangent this is)

Example[edit | edit source]

set theta to atan n

(unlike asin and acos, where the example provided was meaningful, this example is simply an example)

Notes[edit | edit source]

  • From v0005, all OBSE trigonometric functions take and return degrees. Versions of the functions which accept radians are still available by prefixing the function name with an r. (i.e. ratan)
  • This function can be used in a mathematical formula (a + atan b), but a mathematical formula will not compile as the arguement for this function (atan (a + b) doesn't work).
  • atan a + b = ( atan a ) + b

See Also[edit | edit source]