Math Script
Collection of generic math-related global functions
DefinitionEdit
ScriptName Math
PropertiesEdit
None
Member FunctionsEdit
None
Global FunctionsEdit
- 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 FunctionsEdit
- 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.
- Float Log(Float arg1)
- Returns arg1's natural logarithm (see discussion).
EventsEdit
None