Trait nalgebra::PartialOrder
[−]
[src]
pub trait PartialOrder { fn inf(&self, other: &Self) -> Self; fn sup(&self, other: &Self) -> Self; fn partial_cmp(&self, other: &Self) -> PartialOrdering; 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) -> PartialOrdering
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> PartialOrder for Vector1<N>
impl<N: BaseFloat> PartialOrder for Vector2<N>
impl<N: BaseFloat> PartialOrder for Vector3<N>
impl<N: BaseFloat> PartialOrder for Vector4<N>
impl<N: BaseFloat> PartialOrder for Vector5<N>
impl<N: BaseFloat> PartialOrder for Vector6<N>
impl<N: BaseFloat> PartialOrder for Point1<N>
impl<N: BaseFloat> PartialOrder for Point2<N>
impl<N: BaseFloat> PartialOrder for Point3<N>
impl<N: BaseFloat> PartialOrder for Point4<N>
impl<N: BaseFloat> PartialOrder for Point5<N>
impl<N: BaseFloat> PartialOrder for Point6<N>
impl<N: BaseFloat> PartialOrder for Quaternion<N>