Difference between revisions of "Math Script"

64 bytes added ,  12:53, 20 February 2012
imported>Jlundin
(New page: Category:Scripting Category:Papyrus Category:Script Objects Collection of generic math-related global functions == Definition == <source lang="papyrus"> ScriptName Math </sou...)
 
imported>Jog
Line 14: Line 14:


== Global Functions ==
== Global Functions ==
*float Function [[abs - Math|abs]](float afValue)
'''float Function [[abs - Math|abs]](float afValue)'''
**Calculates the absolute value of its parameter.
*Calculates the absolute value of its parameter.
*float Function [[acos - Math|acos]](float afValue)
 
**Calculates the arccosine of its value (returns degrees).
'''float Function [[acos - Math|acos]](float afValue)'''
*float Function [[asin - Math|asin]](float afValue)
*Calculates the arccosine of its value (returns degrees).
**Calculates the arcsine of its value (returns degrees).
 
*float Function [[atan - Math|atan]](float afValue)
'''float Function [[asin - Math|asin]](float afValue)'''
**Calculates the arctangent of its value (returns degrees).
*Calculates the arcsine of its value (returns degrees).
*int Function [[Ceiling - Math|Ceiling]](float afValue)
 
**Calculates the smallest number greater than or equal to the value.
'''float Function [[atan - Math|atan]](float afValue)'''
*float Function [[cos - Math|cos]](float afValue)
*Calculates the arctangent of its value (returns degrees).
**Calculates the cosine of it's value (in degrees).
 
*float Function [[DegreesToRadians - Math|DegreesToRadians]](float afDegrees)
'''int Function [[Ceiling - Math|Ceiling]](float afValue)'''
**Converts its argument in degrees to radians.
*Calculates the smallest number greater than or equal to the value.
*int Function [[Floor - Math|Floor]](float afValue)
 
**Calculates the largest number less than or equal to the value.
'''float Function [[cos - Math|cos]](float afValue)'''
*float Function [[pow - Math|pow]](float x, float y)
*Calculates the cosine of it's value (in degrees).
**Raises x to the y power.
 
*float Function [[RadiansToDegrees - Math|RadiansToDegrees]](float afRadians)
'''float Function [[DegreesToRadians - Math|DegreesToRadians]](float afDegrees)'''
**Converts its argument in radians to degrees.
*Converts its argument in degrees to radians.
*float Function [[sin - Math|sin]](float afValue)
 
**Calculates the sine of its argument (in degrees).
'''int Function [[Floor - Math|Floor]](float afValue)'''
*float Function [[sqrt - Math|sqrt]](float afValue)
*Calculates the largest number less than or equal to the value.
**Calculates the square root of its argument.
 
*float Function [[tan - Math|tan]](float afValue)
'''float Function [[pow - Math|pow]](float x, float y)'''
**Calculates the tangent of its value (in degrees).
*Raises x to the y power.
 
'''float Function [[RadiansToDegrees - Math|RadiansToDegrees]](float afRadians)'''
*Converts its argument in radians to degrees.
 
'''float Function [[sin - Math|sin]](float afValue)'''
*Calculates the sine of its argument (in degrees).
 
'''float Function [[sqrt - Math|sqrt]](float afValue)'''
*Calculates the square root of its argument.
 
'''float Function [[tan - Math|tan]](float afValue)'''
*Calculates the tangent of its value (in degrees).


== Member Functions ==
== Member Functions ==
Anonymous user