Difference between revisions of "Math Script"
Jump to navigation
Jump to search
imported>PurpleLunchbox |
imported>CraftySentinel m (Formatting Change) |
||
Line 13: | Line 13: | ||
== Properties == | == Properties == | ||
None | |||
== Member Functions == | |||
None | None | ||
== Global Functions == | == Global Functions == | ||
''' | {|class="wikitable" width =100% | ||
!style="text-align:left;"|Function | |||
!style="text-align:left;"|Description | |||
|- | |||
|[[abs - Math|Float '''abs'''(Float ''afValue'')]] | |||
|Calculates the absolute value of its parameter. | |||
|- | |||
|[[acos - Math|Float '''acos'''(Float ''afValue'')]] | |||
|Calculates the arccosine of its value (returns degrees). | |||
|- | |||
|[[asin - Math|Float '''asin'''(Float ''afValue'')]] | |||
|Calculates the arcsine of its value (returns degrees). | |||
|- | |||
|[[atan - Math|Float '''atan'''(Float ''afValue'')]] | |||
|Calculates the arctangent of its value (returns degrees). | |||
|- | |||
|[[Ceiling - Math|Int '''Ceiling'''(Float ''afValue'')]] | |||
|Calculates the smallest integer greater than or equal to the value. | |||
|- | |||
|[[cos - Math|Float '''cos'''(Float ''afValue'')]] | |||
|Calculates the cosine of its value (in degrees). | |||
|- | |||
|[[DegreesToRadians - Math|Float '''DegreesToRadians'''(Float ''afDegrees'')]] | |||
|Converts its argument in degrees to radians. | |||
|- | |||
|[[Floor - Math|Int '''Floor'''(Float ''afValue'')]] | |||
|Calculates the largest integer less than or equal to the value. | |||
|- | |||
|[[pow - Math|Float '''pow'''(Float ''x'', Float ''y'')]] | |||
|Raises x to the y power. | |||
|- | |||
|[[RadiansToDegrees - Math|Float '''RadiansToDegrees'''(Float ''afRadians'')]] | |||
|Converts its argument in radians to degrees. | |||
|- | |||
|[[sin - Math|Float '''sin'''(Float ''afValue'')]] | |||
|Calculates the sine of its argument (in degrees). | |||
|- | |||
|[[sqrt - Math|Float '''sqrt'''(Float ''afValue'')]] | |||
|Calculates the square root of its argument. | |||
|- | |||
|[[tan - Math|Float '''tan'''(Float ''afValue'')]] | |||
|Calculates the tangent of its value (in degrees). | |||
|- | |||
|} | |||
== SKSE Global Functions == | == SKSE Global Functions == | ||
''' | {|class="wikitable" width =100% | ||
!style="text-align:left;"|Function | |||
!style="text-align:left;"|Description | |||
|- | |||
|[[LeftShift - Math|Int '''LeftShift'''(Int ''value'', Int ''n'')]] | |||
|Shifts value left by n number of bits. | |||
|- | |||
|[[RightShift - Math|Int '''RightShift'''(Int ''value'', Int ''n'')]] | |||
|Shifts value right by n number of bits. | |||
|- | |||
|[[LogicalAnd - Math|Int '''LogicalAnd'''(Int ''arg1'', Int ''arg2'')]] | |||
|ANDs arg1 with arg2. | |||
|- | |||
|[[LogicalOr - Math|Int '''LogicalOr'''(Int ''arg1'', Int ''arg2'')]] | |||
|ORs arg1 with arg2. | |||
|- | |||
|[[LogicalXor - Math|Int '''LogicalXor'''(Int ''arg1'', Int ''arg2'')]] | |||
|Exclusive ORs arg1 with arg2. | |||
|- | |||
|[[LogicalNot - Math|Int '''LogicalNot'''(Int ''arg1'')]] | |||
|Inverts arg1's bits. | |||
|- | |||
|} | |||
== Events == | == Events == | ||
None | None |
Revision as of 04:12, 24 October 2013
Collection of generic math-related global functions
Definition
ScriptName Math
Properties
None
Member Functions
None
Global Functions
Function | Description |
---|---|
Float abs(Float afValue) | Calculates the absolute value of its parameter. |
Float acos(Float afValue) | Calculates the arccosine of its value (returns degrees). |
Float asin(Float afValue) | Calculates the arcsine of its value (returns degrees). |
Float atan(Float afValue) | Calculates the arctangent of its value (returns degrees). |
Int Ceiling(Float afValue) | Calculates the smallest integer greater than or equal to the value. |
Float cos(Float afValue) | Calculates the cosine of its value (in degrees). |
Float DegreesToRadians(Float afDegrees) | Converts its argument in degrees to radians. |
Int Floor(Float afValue) | Calculates the largest integer less than or equal to the value. |
Float pow(Float x, Float y) | Raises x to the y power. |
Float RadiansToDegrees(Float afRadians) | Converts its argument in radians to degrees. |
Float sin(Float afValue) | Calculates the sine of its argument (in degrees). |
Float sqrt(Float afValue) | Calculates the square root of its argument. |
Float tan(Float afValue) | Calculates the tangent of its value (in degrees). |
SKSE Global Functions
Function | Description |
---|---|
Int LeftShift(Int value, Int n) | Shifts value left by n number of bits. |
Int RightShift(Int value, Int n) | Shifts value right by n number of bits. |
Int LogicalAnd(Int arg1, Int arg2) | ANDs arg1 with arg2. |
Int LogicalOr(Int arg1, Int arg2) | ORs arg1 with arg2. |
Int LogicalXor(Int arg1, Int arg2) | Exclusive ORs arg1 with arg2. |
Int LogicalNot(Int arg1) | Inverts arg1's bits. |
Events
None