Module math

Module math 

Source
Available on crate feature core only.
Expand description

Low level math operations.

Functionsยง

nstd_core_math_abs_i8
Computes the absolute (positive) value of x.
nstd_core_math_abs_i16
Computes the absolute (positive) value of x.
nstd_core_math_abs_i32
Computes the absolute (positive) value of x.
nstd_core_math_abs_i64
Computes the absolute (positive) value of x.
nstd_core_math_abs_int
Computes the absolute (positive) value of x.
nstd_core_math_clamp_f32
Clamps the value x to the bounds min and max.
nstd_core_math_clamp_f64
Clamps the value x to the bounds min and max.
nstd_core_math_clamp_i8
Clamps the value x to the bounds min and max.
nstd_core_math_clamp_i16
Clamps the value x to the bounds min and max.
nstd_core_math_clamp_i32
Clamps the value x to the bounds min and max.
nstd_core_math_clamp_i64
Clamps the value x to the bounds min and max.
nstd_core_math_clamp_int
Clamps the value x to the bounds min and max.
nstd_core_math_clamp_u8
Clamps the value x to the bounds min and max.
nstd_core_math_clamp_u16
Clamps the value x to the bounds min and max.
nstd_core_math_clamp_u32
Clamps the value x to the bounds min and max.
nstd_core_math_clamp_u64
Clamps the value x to the bounds min and max.
nstd_core_math_clamp_uint
Clamps the value x to the bounds min and max.
nstd_core_math_deg_f32
Converts radians to degrees.
nstd_core_math_deg_f64
Converts radians to degrees.
nstd_core_math_div_ceil_i8
Divides two numbers and rounds the result up to the next integer.
nstd_core_math_div_ceil_i16
Divides two numbers and rounds the result up to the next integer.
nstd_core_math_div_ceil_i32
Divides two numbers and rounds the result up to the next integer.
nstd_core_math_div_ceil_i64
Divides two numbers and rounds the result up to the next integer.
nstd_core_math_div_ceil_int
Divides two numbers and rounds the result up to the next integer.
nstd_core_math_div_ceil_u8
Divides two numbers and rounds the result up to the next integer.
nstd_core_math_div_ceil_u16
Divides two numbers and rounds the result up to the next integer.
nstd_core_math_div_ceil_u32
Divides two numbers and rounds the result up to the next integer.
nstd_core_math_div_ceil_u64
Divides two numbers and rounds the result up to the next integer.
nstd_core_math_div_ceil_uint
Divides two numbers and rounds the result up to the next integer.
nstd_core_math_div_floor_i8
Divides two numbers and rounds the result down to the next integer.
nstd_core_math_div_floor_i16
Divides two numbers and rounds the result down to the next integer.
nstd_core_math_div_floor_i32
Divides two numbers and rounds the result down to the next integer.
nstd_core_math_div_floor_i64
Divides two numbers and rounds the result down to the next integer.
nstd_core_math_div_floor_int
Divides two numbers and rounds the result down to the next integer.
nstd_core_math_div_floor_u8
Divides two numbers and rounds the result down to the next integer.
nstd_core_math_div_floor_u16
Divides two numbers and rounds the result down to the next integer.
nstd_core_math_div_floor_u32
Divides two numbers and rounds the result down to the next integer.
nstd_core_math_div_floor_u64
Divides two numbers and rounds the result down to the next integer.
nstd_core_math_div_floor_uint
Divides two numbers and rounds the result down to the next integer.
nstd_core_math_pow_i8
Raises the value x to the power of exp
nstd_core_math_pow_i16
Raises the value x to the power of exp
nstd_core_math_pow_i32
Raises the value x to the power of exp
nstd_core_math_pow_i64
Raises the value x to the power of exp
nstd_core_math_pow_int
Raises the value x to the power of exp
nstd_core_math_pow_u8
Raises the value x to the power of exp
nstd_core_math_pow_u16
Raises the value x to the power of exp
nstd_core_math_pow_u32
Raises the value x to the power of exp
nstd_core_math_pow_u64
Raises the value x to the power of exp
nstd_core_math_pow_uint
Raises the value x to the power of exp
nstd_core_math_rad_f32
Converts degrees to radians.
nstd_core_math_rad_f64
Converts degrees to radians.