Current section
Files
Jump to
Current section
Files
src/glua@lib@math.erl
-module(glua@lib@math).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]).
-define(FILEPATH, "src/glua/lib/math.gleam").
-export([abs/0, acos/0, asin/0, atan/0, atan2/0, ceil/0, cos/0, cosh/0, deg/0, exp/0, floor/0, fmod/0, frexp/0, ldexp/0, log/0, log10/0, max/0, min/0, modf/0, pow/0, rad/0, random/0, random_seed/0, sin/0, sinh/0, sqrt/0, tan/0, tanh/0, to_integer/0, type_/0]).
-if(?OTP_RELEASE >= 27).
-define(MODULEDOC(Str), -moduledoc(Str)).
-define(DOC(Str), -doc(Str)).
-else.
-define(MODULEDOC(Str), -compile([])).
-define(DOC(Str), -compile([])).
-endif.
?MODULEDOC(" Bindings to the functions under `_G.math`\n").
-file("src/glua/lib/math.gleam", 15).
?DOC(" Returns the `math.abs` function.\n").
-spec abs() -> glua:value().
abs() ->
glua_stdlib_ffi:math_abs().
-file("src/glua/lib/math.gleam", 19).
?DOC(" Returns the `math.acos` function.\n").
-spec acos() -> glua:value().
acos() ->
glua_stdlib_ffi:math_acos().
-file("src/glua/lib/math.gleam", 23).
?DOC(" Returns the `math.asin` function.\n").
-spec asin() -> glua:value().
asin() ->
glua_stdlib_ffi:math_asin().
-file("src/glua/lib/math.gleam", 27).
?DOC(" Returns the `math.atan` function.\n").
-spec atan() -> glua:value().
atan() ->
glua_stdlib_ffi:math_atan().
-file("src/glua/lib/math.gleam", 33).
?DOC(
" Returns the `math.atan2` function.\n"
"\n"
" As of Lua 5.3, `math.atan2` is deprecated\n"
).
-spec atan2() -> glua:value().
atan2() ->
glua_stdlib_ffi:math_atan2().
-file("src/glua/lib/math.gleam", 37).
?DOC(" Returns the `math.ceil` function.\n").
-spec ceil() -> glua:value().
ceil() ->
glua_stdlib_ffi:math_ceil().
-file("src/glua/lib/math.gleam", 41).
?DOC(" Returns the `math.cos` function.\n").
-spec cos() -> glua:value().
cos() ->
glua_stdlib_ffi:math_cos().
-file("src/glua/lib/math.gleam", 47).
?DOC(
" Returns the `math.cosh` function.\n"
"\n"
" As of Lua 5.3, `math.cosh` is deprecated\n"
).
-spec cosh() -> glua:value().
cosh() ->
glua_stdlib_ffi:math_cosh().
-file("src/glua/lib/math.gleam", 51).
?DOC(" Returns the `math.deg` function.\n").
-spec deg() -> glua:value().
deg() ->
glua_stdlib_ffi:math_deg().
-file("src/glua/lib/math.gleam", 55).
?DOC(" Returns the `math.exp` function.\n").
-spec exp() -> glua:value().
exp() ->
glua_stdlib_ffi:math_exp().
-file("src/glua/lib/math.gleam", 59).
?DOC(" Returns the `math.floor` function.\n").
-spec floor() -> glua:value().
floor() ->
glua_stdlib_ffi:math_floor().
-file("src/glua/lib/math.gleam", 63).
?DOC(" Returns the `math.fmod` function.\n").
-spec fmod() -> glua:value().
fmod() ->
glua_stdlib_ffi:math_fmod().
-file("src/glua/lib/math.gleam", 69).
?DOC(
" Returns the `math.frexp` function.\n"
"\n"
" As of Lua 5.3, `math.frexp` is deprecated\n"
).
-spec frexp() -> glua:value().
frexp() ->
glua_stdlib_ffi:math_frexp().
-file("src/glua/lib/math.gleam", 75).
?DOC(
" Returns the `math.ldexp` function.\n"
"\n"
" As of Lua 5.3, `math.ldexp` is deprecated\n"
).
-spec ldexp() -> glua:value().
ldexp() ->
glua_stdlib_ffi:math_ldexp().
-file("src/glua/lib/math.gleam", 79).
?DOC(" Returns the `math.log` function.\n").
-spec log() -> glua:value().
log() ->
glua_stdlib_ffi:math_log().
-file("src/glua/lib/math.gleam", 83).
?DOC(" Returns the `math.log10` function.\n").
-spec log10() -> glua:value().
log10() ->
glua_stdlib_ffi:math_log10().
-file("src/glua/lib/math.gleam", 87).
?DOC(" Returns the `math.max` function.\n").
-spec max() -> glua:value().
max() ->
glua_stdlib_ffi:math_max().
-file("src/glua/lib/math.gleam", 91).
?DOC(" Returns the `math.min` function.\n").
-spec min() -> glua:value().
min() ->
glua_stdlib_ffi:math_min().
-file("src/glua/lib/math.gleam", 95).
?DOC(" Returns the `math.modf` function.\n").
-spec modf() -> glua:value().
modf() ->
glua_stdlib_ffi:math_modf().
-file("src/glua/lib/math.gleam", 101).
?DOC(
" Returns the `math.pow` function.\n"
"\n"
" As of Lua 5.3, `math.pow` is deprecated\n"
).
-spec pow() -> glua:value().
pow() ->
glua_stdlib_ffi:math_pow().
-file("src/glua/lib/math.gleam", 105).
?DOC(" Returns the `math.rad` function.\n").
-spec rad() -> glua:value().
rad() ->
glua_stdlib_ffi:math_rad().
-file("src/glua/lib/math.gleam", 109).
?DOC(" Returns the `math.random` function.\n").
-spec random() -> glua:value().
random() ->
glua_stdlib_ffi:math_random().
-file("src/glua/lib/math.gleam", 113).
?DOC(" Returns the `math.randomseed` function.\n").
-spec random_seed() -> glua:value().
random_seed() ->
glua_stdlib_ffi:math_randomseed().
-file("src/glua/lib/math.gleam", 117).
?DOC(" Returns the `math.sin` function.\n").
-spec sin() -> glua:value().
sin() ->
glua_stdlib_ffi:math_sin().
-file("src/glua/lib/math.gleam", 123).
?DOC(
" Returns the `math.sinh` function.\n"
"\n"
" As of Lua 5.3, `math.sinh` is deprecated\n"
).
-spec sinh() -> glua:value().
sinh() ->
glua_stdlib_ffi:math_sinh().
-file("src/glua/lib/math.gleam", 127).
?DOC(" Returns the `math.sqrt` function.\n").
-spec sqrt() -> glua:value().
sqrt() ->
glua_stdlib_ffi:math_sqrt().
-file("src/glua/lib/math.gleam", 131).
?DOC(" Returns the `math.tan` function.\n").
-spec tan() -> glua:value().
tan() ->
glua_stdlib_ffi:math_tan().
-file("src/glua/lib/math.gleam", 137).
?DOC(
" Returns the `math.tanh` function.\n"
"\n"
" As of Lua 5.3, `math.tanh` is deprecated\n"
).
-spec tanh() -> glua:value().
tanh() ->
glua_stdlib_ffi:math_tanh().
-file("src/glua/lib/math.gleam", 141).
?DOC(" Returns the `math.tointeger` function.\n").
-spec to_integer() -> glua:value().
to_integer() ->
glua_stdlib_ffi:math_tointeger().
-file("src/glua/lib/math.gleam", 145).
?DOC(" Returns the `math.type` function.\n").
-spec type_() -> glua:value().
type_() ->
glua_stdlib_ffi:math_type().