Trait runa_orbiter::utils::geometry::Sign
source · pub trait Sign {
// Required methods
fn is_negative(&self) -> bool;
fn abs(&self) -> Self;
}Expand description
A trait about the sign of a number.
We need this because num_traits does not define abs for
unsigned numbers.
Required Methods§
sourcefn is_negative(&self) -> bool
fn is_negative(&self) -> bool
Return true if the number is negative