Expand description
std::math - mathematical functions and the std::math::consts submodule.
Most functions accept both int and float; mixed types are handled per-function.
pow uses with_raw_function to handle (int, int), (int, float), (float, float),
and (float, int) combinations manually.
Modulesยง
- abs ๐
- acos ๐
- asin ๐
- atan ๐
- atan2 ๐
- ceil ๐
- clamp ๐
- constants
std::math::consts- mathematical constants fromstd::f64::consts.- cos ๐
- degrees ๐
- exp ๐
- factorial ๐
- fibonacci ๐
- floor ๐
- gcd ๐
- hypot ๐
- is_
prime ๐ - lcm ๐
- lerp ๐
- log ๐
- log2 ๐
- log10 ๐
- map_
range ๐ - max ๐
- min ๐
- modulo ๐
- power ๐
- radians ๐
- round ๐
- sign ๐
- sin ๐
- sqrt ๐
- tan ๐