Trait concrete_core::math::torus::FromTorus [−][src]
pub trait FromTorus<F>: Sized where
F: FloatingPoint,
Self: UnsignedInteger, { fn from_torus(input: F) -> Self; }
Expand description
A trait that converts a torus element in floating point representation into the closest torus element in unsigned integer representation.
Required methods
fn from_torus(input: F) -> Self
fn from_torus(input: F) -> Self
Consumes input
and returns its closest unsigned integer representation.