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
xto the boundsminandmax. - nstd_
core_ math_ clamp_ f64 - Clamps the value
xto the boundsminandmax. - nstd_
core_ math_ clamp_ i8 - Clamps the value
xto the boundsminandmax. - nstd_
core_ math_ clamp_ i16 - Clamps the value
xto the boundsminandmax. - nstd_
core_ math_ clamp_ i32 - Clamps the value
xto the boundsminandmax. - nstd_
core_ math_ clamp_ i64 - Clamps the value
xto the boundsminandmax. - nstd_
core_ math_ clamp_ int - Clamps the value
xto the boundsminandmax. - nstd_
core_ math_ clamp_ u8 - Clamps the value
xto the boundsminandmax. - nstd_
core_ math_ clamp_ u16 - Clamps the value
xto the boundsminandmax. - nstd_
core_ math_ clamp_ u32 - Clamps the value
xto the boundsminandmax. - nstd_
core_ math_ clamp_ u64 - Clamps the value
xto the boundsminandmax. - nstd_
core_ math_ clamp_ uint - Clamps the value
xto the boundsminandmax. - 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
xto the power ofexp - nstd_
core_ math_ pow_ i16 - Raises the value
xto the power ofexp - nstd_
core_ math_ pow_ i32 - Raises the value
xto the power ofexp - nstd_
core_ math_ pow_ i64 - Raises the value
xto the power ofexp - nstd_
core_ math_ pow_ int - Raises the value
xto the power ofexp - nstd_
core_ math_ pow_ u8 - Raises the value
xto the power ofexp - nstd_
core_ math_ pow_ u16 - Raises the value
xto the power ofexp - nstd_
core_ math_ pow_ u32 - Raises the value
xto the power ofexp - nstd_
core_ math_ pow_ u64 - Raises the value
xto the power ofexp - nstd_
core_ math_ pow_ uint - Raises the value
xto the power ofexp - nstd_
core_ math_ rad_ f32 - Converts degrees to radians.
- nstd_
core_ math_ rad_ f64 - Converts degrees to radians.