Math Script

From Creation Kit
Jump to: navigation, search


Collection of generic math-related global functions.

Definition

ScriptName Math Native Hidden

Properties

None

Global Functions

  • float Function abs(float afValue)
    • Calculates the absolute value of its parameter.
  • float Function acos(float afValue)
    • Calculates the arccosine of its value (returns degrees).
  • float Function asin(float afValue)
    • Calculates the arcsine of its value (returns degrees).
  • float Function atan(float afValue)
    • Calculates the arctangent of its value (returns degrees).
  • int Function Ceiling(float afValue)
    • Calculates the smallest number greater than or equal to the value.
  • float Function cos(float afValue)
    • Calculates the cosine of it's value (in degrees).
  • float Function DegreesToRadians(float afDegrees)
    • Converts its argument in degrees to radians.
  • int Function Floor(float afValue)
    • Calculates the largest number less than or equal to the value.
  • float Function Max(float afValue1, float afValue2)
    • Returns the larger of the two values.
  • float Function Min(float afValue1, float afValue2)
    • Returns the smaller of the two values.
  • float Function pow(float x, float y)
    • Raises x to the y power.
  • float Function RadiansToDegrees(float afRadians)
    • Converts its argument in radians to degrees.
  • float Function sin(float afValue)
    • Calculates the sine of its argument (in degrees).
  • float Function sqrt(float afValue)
    • Calculates the square root of its argument.
  • float Function tan(float afValue)
    • Calculates the tangent of its value (in degrees).

F4SE Global Functions

  • float Function Exp(float arg1)
    • Returns the exponential value of a specified number.
  • int Function LeftShift(int value, int shiftBy)
    • Shifts value left by n number of bits.
  • float Function Log(float arg1)
    • Returns the logarithm of a specified number.
  • int Function LogicalAnd(int arg1, int arg2)
    • ANDs arg1 with arg2.
  • int Function LogicalNot(int arg1)
    • Inverts arg1's bits.
  • int Function LogicalOr(int arg1, int arg2)
    • ORs arg1 with arg2.
  • int Function LogicalXor(int arg1, int arg2)
    • Exclusive ORs arg1 with arg2.
  • int Function RightShift(int value, int shiftBy)
    • Shifts value right by n number of bits.

Member Functions

None

Events

None