pub struct OrientedSimplex<FS: OrderedRingStructure + FieldStructure, SP: Borrow<AffineSpace<FS>> + Clone> { /* private fields */ }Implementations§
Source§impl<FS: OrderedRingStructure + FieldStructure, SP: Borrow<AffineSpace<FS>> + Clone> OrientedSimplex<FS, SP>
impl<FS: OrderedRingStructure + FieldStructure, SP: Borrow<AffineSpace<FS>> + Clone> OrientedSimplex<FS, SP>
pub fn new_with_positive_point( ambient_space: SP, points: Vec<Vector<FS, SP>>, ref_point: &Vector<FS, SP>, ) -> Result<Self, &'static str>
pub fn new_with_negative_point( ambient_space: SP, points: Vec<Vector<FS, SP>>, ref_point: &Vector<FS, SP>, ) -> Result<Self, &'static str>
pub fn positive_point(&self) -> Option<Vector<FS, SP>>
pub fn negative_point(&self) -> Option<Vector<FS, SP>>
pub fn ambient_space(&self) -> SP
pub fn simplex(&self) -> &Simplex<FS, SP>
pub fn flip(&mut self)
pub fn classify_point(&self, point: &Vector<FS, SP>) -> OrientationSide
pub fn into_oriented_hyperplane(self) -> OrientedHyperplane<FS, SP>
Trait Implementations§
Source§impl<FS: Clone + OrderedRingStructure + FieldStructure, SP: Clone + Borrow<AffineSpace<FS>> + Clone> Clone for OrientedSimplex<FS, SP>
impl<FS: Clone + OrderedRingStructure + FieldStructure, SP: Clone + Borrow<AffineSpace<FS>> + Clone> Clone for OrientedSimplex<FS, SP>
Source§fn clone(&self) -> OrientedSimplex<FS, SP>
fn clone(&self) -> OrientedSimplex<FS, SP>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<FS: OrderedRingStructure + FieldStructure, SP: Borrow<AffineSpace<FS>> + Clone> Debug for OrientedSimplex<FS, SP>
impl<FS: OrderedRingStructure + FieldStructure, SP: Borrow<AffineSpace<FS>> + Clone> Debug for OrientedSimplex<FS, SP>
Auto Trait Implementations§
impl<FS, SP> Freeze for OrientedSimplex<FS, SP>where
SP: Freeze,
impl<FS, SP> RefUnwindSafe for OrientedSimplex<FS, SP>
impl<FS, SP> Send for OrientedSimplex<FS, SP>
impl<FS, SP> Sync for OrientedSimplex<FS, SP>
impl<FS, SP> Unpin for OrientedSimplex<FS, SP>
impl<FS, SP> UnwindSafe for OrientedSimplex<FS, SP>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more