Math

From GMod Wiki

Jump to: navigation, search

Mathematics.

This is a standard Lua 5.1 library. More documentation may be found in the Lua 5.1 Reference Manual at http://www.lua.org/manual/5.1/manual.html#5.6

Library Functions

NewerShared.png math.abs
NewerShared.png math.acos
NewerShared.png math.AngleDifference
NewerShared.png math.Approach
NewerShared.png math.ApproachAngle
NewerShared.png math.asin
NewerShared.png math.atan
NewerShared.png math.atan2
NewerShared.png math.BinToInt
NewerShared.png math.BSplinePoint
NewerShared.png math.calcBSplineN
NewerShared.png math.ceil
NewerShared.png math.Clamp
NewerShared.png math.cos
NewerShared.png math.cosh
NewerShared.png math.deg
NewerShared.png math.Deg2Rad
NewerShared.png math.Dist
NewerShared.png math.Distance
NewerShared.png math.EaseInOut
NewerShared.png math.exp
NewerShared.png math.floor
NewerShared.png math.fmod
NewerShared.png math.frexp
NewerShared.png math.huge
NewerShared.png math.IntToBin
NewerShared.png math.ldexp
NewerShared.png math.log
NewerShared.png math.log10
NewerShared.png math.Max
NewerShared.png math.max
NewerShared.png math.min
NewerShared.png math.Min
NewerShared.png math.modf
NewerShared.png math.NormalizeAngle
NewerShared.png math.pi
NewerShared.png math.pow
NewerShared.png math.rad
NewerShared.png math.Rad2Deg
NewerShared.png math.Rand
NewerShared.png math.random
NewerShared.png math.randomseed
NewerShared.png math.Round
NewerShared.png math.sin
NewerShared.png math.sinh
NewerShared.png math.sqrt
NewerShared.png math.tan
NewerShared.png math.tanh
NewerShared.png math.TimeFraction

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox