Skip to content

Repository files navigation

LibMathf (CommonLibSSE Plugin)

; Returns the absolute value of fFloatFunctionAbs(Floatf) GlobalNative; Returns the arc-cosine of f - the angle in radians whose cosine is fFloatFunctionAcos(Floatf) GlobalNative; Returns the arc-tangent of f - the angle in radians whose tangent is fFloatFunctionAtan(Floatf) GlobalNative; Returns the angle in radians whose tan is y/xFloatFunctionAtan2(Floaty, Floatx) GlobalNative; Compares two floating point values and returns true if they are similarBoolFunctionApproximately(Floata, Floatb) GlobalNative; Returns the arc-sine of f - the angle in radians whose sine is fFloatFunctionAsin(Floatf) GlobalNative; Returns the smallest number (as Float) greater than or equal to fFloatFunctionCeil(Floatf) GlobalNative; Returns the smallest number (as Int) greater than or equal to fIntFunctionCeilToInt(Floatf) GlobalNative; Returns value clamped between min and maxFloatFunctionClamp(Floatvalue, Floatmin, Floatmax) GlobalNative; Returns value clamped between 0 and 1FloatFunctionClamp01(Floatvalue) GlobalNative; Returns the closest power of two numberIntFunctionClosestPowerOfTwo(Intvalue) GlobalNative; Returns the cosine of angle fFloatFunctionCos(Floatf) GlobalNative; Calculates the shortest difference between two angles in degreesFloatFunctionDeltaAngle(Floatcurrent, Floattarget) GlobalNative; Returns e raised to the specified powerFloatFunctionExp(Floatp) GlobalNative; Returns the largest number (as Float) smaller than or equal to fFloatFunctionFloor(Floatf) GlobalNative; Returns the largest number (as Int) smaller than or equal to fIntFunctionFloorToInt(Floatf) GlobalNative; Returns t if value is true or f if value is falseFloatFunctionIfThen(Boolvalue, Floatt, Floatf) GlobalNative; Returns true if value is between min and maxBoolFunctionInRange(Floatvalue, Floatmin, Floatmax) GlobalNative; Calculates the linear parameter t that produces the interpolant value within the range [a, b]FloatFunctionInverseLerp(Floata, Floatb, Floatvalue) GlobalNative; Returns true if the number is power of twoBoolFunctionIsPowerOfTwo(Intn) GlobalNative; Linearly interpolates between a and b by tFloatFunctionLerp(Floata, Floatb, Floatt) GlobalNative; Same as Lerp but makes sure the values interpolate correctly when they wrap around 360 degreesFloatFunctionLerpAngle(Floata, Floatb, Floatt) GlobalNative; Linearly interpolates between a and b by t with no limit to tFloatFunctionLerpUnclamped(Floata, Floatb, Floatt) GlobalNative; Returns the largest of two numbersFloatFunctionMax(Floatx, Floaty) GlobalNative; Returns the smallest of two numbersFloatFunctionMin(Floatx, Floaty) GlobalNative; Moves current value towards targetFloatFunctionMoveTowards(Floatcurrent, Floattarget, FloatmaxDelta) GlobalNative; Same as MoveTowards but makes sure the values interpolate correctly when they wrap around 360 degreesFloatFunctionMoveTowardsAngle(Floatcurrent, Floattarget, FloatmaxDelta) GlobalNative; Returns the next power of two greater than or equal to nIntFunctionNextPowerOfTwo(Intn) GlobalNative; Returns number that will increment and decrement between 0 and lengthFloatFunctionPingPong(Floatt, Floatlen) GlobalNative; Returns the logarithm of a numberFloatFunctionLog(Floatf) GlobalNative; Returns the base 10 logarithm of a numberFloatFunctionLog10(Floatf) GlobalNative; Returns f raised to power pFloatFunctionPow(Floatf, Floatp) GlobalNative; Loops t so t is never larger than length and never smaller than 0FloatFunctionRepeat(Floatt, Floatlen) GlobalNative; Returns f (as Float) rounded to the nearest integerFloatFunctionRound(Floatf) GlobalNative; Returns f (as Int) rounded to the nearest integerIntFunctionRoundToInt(Floatf) GlobalNative; Returns the sign of fFloatFunctionSign(Floatf) GlobalNative; Returns the sine of angle fFloatFunctionSin(Floatf) GlobalNative; Interpolates between min and max with smoothing at the limitsFloatFunctionSmoothStep(Floatcurrent, Floattarget, Floatt) GlobalNative; Returns square root of fFloatFunctionSqrt(Floatf) GlobalNative; Returns the tangent of angle f in radiansFloatFunctionTan(Floatf) GlobalNative

About

Papyrus Extender for common math functions. New releases first available at letsplaywithfire.com.

Topics

Resources

Stars

13 stars

Watchers

2 watching

Forks

Releases

Used by

Contributors

Languages