Module nannou::math [−][src]
Re-exports
pub use self::cgmath::*; |
Macros
assert_relative_eq | |
assert_relative_ne | |
assert_ulps_eq | |
assert_ulps_ne | |
relative_eq |
Predicate for testing the approximate equality of two values. |
relative_ne |
Predicate for testing the approximate inequality of two values. |
ulps_eq |
Predicate for testing the approximate equality of two values using a maximum ULPs (Units in Last Place). |
ulps_ne |
Predicate for testing the approximate inequality of two values using a maximum ULPs (Units in Last Place). |
Traits
Float |
Generic trait for floating point numbers |
NumCast |
An interface for casting between machine scalars. |
One |
Defines a multiplicative identity element for |
Functions
clamp |
Clamp a value between some range. |
deg_to_rad |
Convert the given angle in degrees to the same angle in radians. |
fmod |
Models the C++ fmod function. |
map_range |
Map a value from a given range to a new given range. |
partial_max |
The max between two partially ordered values. |
partial_min |
The min between two partially ordered values. |
pt1 |
Shorthand constructor for a |
pt2 |
Shorthand constructor for a |
pt3 |
Shorthand constructor for a |
rad_to_deg |
Convert the given angle in radians to the same angle in degrees. |
rad_to_turns |
Convert the given value in radians to the equivalent value as a number of turns. |
turns_to_rad |
Convert the given value as a number of "turns" into the equivalent angle in radians. |
two |