Module af_core::math [−][src]
Utilties for working with numerical values.
Traits
| AsPrimitive | A generic interface for casting between machine scalars with the
|
| FloatExt | An extension trait for |
| Number | A trait for types that implement all the basic operations of a number. |
| One | Defines a multiplicative identity element for |
| Zero | Defines an additive identity element for |
Functions
| clamp | Clamps a number so that it is between a minimum and maximum bound. |
| clamp_mut | Clamps a number in-place so that it is between a minimum and maximum bound. |
| one | Returns the multiplicative identity, |
| zero | Returns the additive identity, |