glua/lib/math

Bindings to the functions under _G.math

Values

pub fn abs() -> glua.Value

Returns the math.abs function.

pub fn acos() -> glua.Value

Returns the math.acos function.

pub fn asin() -> glua.Value

Returns the math.asin function.

pub fn atan() -> glua.Value

Returns the math.atan function.

pub fn atan2() -> glua.Value

Returns the math.atan2 function.

As of Lua 5.3, math.atan2 is deprecated

pub fn ceil() -> glua.Value

Returns the math.ceil function.

pub fn cos() -> glua.Value

Returns the math.cos function.

pub fn cosh() -> glua.Value

Returns the math.cosh function.

As of Lua 5.3, math.cosh is deprecated

pub fn deg() -> glua.Value

Returns the math.deg function.

pub fn exp() -> glua.Value

Returns the math.exp function.

pub fn floor() -> glua.Value

Returns the math.floor function.

pub fn fmod() -> glua.Value

Returns the math.fmod function.

pub fn frexp() -> glua.Value

Returns the math.frexp function.

As of Lua 5.3, math.frexp is deprecated

pub const huge: Float
pub fn ldexp() -> glua.Value

Returns the math.ldexp function.

As of Lua 5.3, math.ldexp is deprecated

pub fn log() -> glua.Value

Returns the math.log function.

pub fn log10() -> glua.Value

Returns the math.log10 function.

pub fn max() -> glua.Value

Returns the math.max function.

pub const max_integer: Int
pub fn min() -> glua.Value

Returns the math.min function.

pub const min_integer: Int
pub fn modf() -> glua.Value

Returns the math.modf function.

pub const pi: Float
pub fn pow() -> glua.Value

Returns the math.pow function.

As of Lua 5.3, math.pow is deprecated

pub fn rad() -> glua.Value

Returns the math.rad function.

pub fn random() -> glua.Value

Returns the math.random function.

pub fn random_seed() -> glua.Value

Returns the math.randomseed function.

pub fn sin() -> glua.Value

Returns the math.sin function.

pub fn sinh() -> glua.Value

Returns the math.sinh function.

As of Lua 5.3, math.sinh is deprecated

pub fn sqrt() -> glua.Value

Returns the math.sqrt function.

pub fn tan() -> glua.Value

Returns the math.tan function.

pub fn tanh() -> glua.Value

Returns the math.tanh function.

As of Lua 5.3, math.tanh is deprecated

pub fn to_integer() -> glua.Value

Returns the math.tointeger function.

pub fn type_() -> glua.Value

Returns the math.type function.

Search Document