Trait nalgebra::POrd
[−]
[src]
pub trait POrd {
fn inf(&self, other: &Self) -> Self;
fn sup(&self, other: &Self) -> Self;
fn partial_cmp(&self, other: &Self) -> POrdering;
fn partial_le(&self, other: &Self) -> bool { ... }
fn partial_lt(&self, other: &Self) -> bool { ... }
fn partial_ge(&self, other: &Self) -> bool { ... }
fn partial_gt(&self, other: &Self) -> bool { ... }
fn partial_min<'a>(&'a self, other: &'a Self) -> Option<&'a Self> { ... }
fn partial_max<'a>(&'a self, other: &'a Self) -> Option<&'a Self> { ... }
fn partial_clamp<'a>(&'a self, min: &'a Self, max: &'a Self) -> Option<&'a Self> { ... }
}Pointwise ordering operations.
Required Methods
fn inf(&self, other: &Self) -> Self
Returns the infimum of this value and another
fn sup(&self, other: &Self) -> Self
Returns the supremum of this value and another
fn partial_cmp(&self, other: &Self) -> POrdering
Compare self and other using a partial ordering relation.
Provided Methods
fn partial_le(&self, other: &Self) -> bool
Returns true iff self and other are comparable and self <= other.
fn partial_lt(&self, other: &Self) -> bool
Returns true iff self and other are comparable and self < other.
fn partial_ge(&self, other: &Self) -> bool
Returns true iff self and other are comparable and self >= other.
fn partial_gt(&self, other: &Self) -> bool
Returns true iff self and other are comparable and self > other.
fn partial_min<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
Return the minimum of self and other if they are comparable.
fn partial_max<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
Return the maximum of self and other if they are comparable.
fn partial_clamp<'a>(&'a self, min: &'a Self, max: &'a Self) -> Option<&'a Self>
Clamp value between min and max. Returns None if value is not comparable to
min or max.
Implementors
impl<N: BaseFloat> POrd for Vec1<N>impl<N: BaseFloat> POrd for Vec2<N>impl<N: BaseFloat> POrd for Vec3<N>impl<N: BaseFloat> POrd for Vec4<N>impl<N: BaseFloat> POrd for Vec5<N>impl<N: BaseFloat> POrd for Vec6<N>impl<N: BaseFloat> POrd for Pnt1<N>impl<N: BaseFloat> POrd for Pnt2<N>impl<N: BaseFloat> POrd for Pnt3<N>impl<N: BaseFloat> POrd for Pnt4<N>impl<N: BaseFloat> POrd for Pnt5<N>impl<N: BaseFloat> POrd for Pnt6<N>impl<N: BaseFloat> POrd for Quat<N>