Script Math Support
Basic Math Functions
-
void asbind20::ext::register_math_function(asIScriptEngine *engine, bool generic = has_max_portability())
This function will register math functions from <cmath> and <numeric>,
as well as some additional helpers.
Math Constants
-
void asbind20::ext::register_math_constants(asIScriptEngine *engine, std::string_view ns = "numbers")
Register math constants.
- Parameters:
ns – Namespace of constants
Complex Number
Register the std::complex<T>, where T can be float or double.
-
void asbind20::ext::register_math_complex(asIScriptEngine *engine, bool use_generic = has_max_portability())
Register
std::complex<float>andstd::complex<double>