pub struct Simplex<FS: OrderedRingStructure + FieldStructure, SP: Borrow<AffineSpace<FS>> + Clone> { /* private fields */ }Implementations§
Source§impl<FS: OrderedRingStructure + FieldStructure, SP> Simplex<FS, SP>
impl<FS: OrderedRingStructure + FieldStructure, SP> Simplex<FS, SP>
pub fn new( ambient_space: SP, points: Vec<Vector<FS, SP>>, ) -> Result<Self, &'static str>
pub fn ambient_space(&self) -> SP
pub fn n(&self) -> usize
pub fn points(&self) -> &Vec<Vector<FS, SP>>
pub fn into_points(self) -> Vec<Vector<FS, SP>>
pub fn point(&self, i: usize) -> &Vector<FS, SP>
pub fn skeleton(&self, skel_n: isize) -> Vec<Self>
pub fn vertices(&self) -> Vec<Self>
pub fn edges(&self) -> Vec<Self>
pub fn faces(&self) -> Vec<Self>
pub fn ridges(&self) -> Vec<Self>
pub fn facets(&self) -> Vec<Self>
pub fn facet(&self, k: usize) -> Self
pub fn sub_simplices(&self) -> Vec<Self>
pub fn sub_simplices_not_null(&self) -> Vec<Self>
pub fn proper_sub_simplices_not_null(&self) -> Vec<Self>
pub fn sub_simplex(&self, pts: Vec<usize>) -> Self
pub fn oriented_facet(&self, k: usize) -> OrientedSimplex<FS, SP>
pub fn oriented_facets(&self) -> Vec<OrientedSimplex<FS, SP>>
Source§impl<FS: OrderedRingStructure + FieldStructure, SP: Borrow<AffineSpace<FS>> + Clone> Simplex<FS, SP>
impl<FS: OrderedRingStructure + FieldStructure, SP: Borrow<AffineSpace<FS>> + Clone> Simplex<FS, SP>
pub fn venn( &self, other: &Self, ) -> LabelledPartialSimplicialComplex<FS, SP, VennLabel>
Trait Implementations§
Source§impl<FS: Clone + OrderedRingStructure + FieldStructure, SP: Clone + Borrow<AffineSpace<FS>> + Clone> Clone for Simplex<FS, SP>
impl<FS: Clone + OrderedRingStructure + FieldStructure, SP: Clone + Borrow<AffineSpace<FS>> + Clone> Clone for Simplex<FS, SP>
Source§impl<FS: OrderedRingStructure + FieldStructure, SP: Borrow<AffineSpace<FS>> + Clone> Debug for Simplex<FS, SP>
impl<FS: OrderedRingStructure + FieldStructure, SP: Borrow<AffineSpace<FS>> + Clone> Debug for Simplex<FS, SP>
Source§impl<FS: OrderedRingStructure + FieldStructure, SP: Borrow<AffineSpace<FS>> + Clone> Hash for Simplex<FS, SP>
impl<FS: OrderedRingStructure + FieldStructure, SP: Borrow<AffineSpace<FS>> + Clone> Hash for Simplex<FS, SP>
Source§impl<FS: OrderedRingStructure + FieldStructure, SP: Borrow<AffineSpace<FS>> + Clone> PartialEq for Simplex<FS, SP>
impl<FS: OrderedRingStructure + FieldStructure, SP: Borrow<AffineSpace<FS>> + Clone> PartialEq for Simplex<FS, SP>
impl<FS: OrderedRingStructure + FieldStructure, SP: Borrow<AffineSpace<FS>> + Clone> Eq for Simplex<FS, SP>
Auto Trait Implementations§
impl<FS, SP> Freeze for Simplex<FS, SP>where
SP: Freeze,
impl<FS, SP> RefUnwindSafe for Simplex<FS, SP>
impl<FS, SP> Send for Simplex<FS, SP>
impl<FS, SP> Sync for Simplex<FS, SP>
impl<FS, SP> Unpin for Simplex<FS, SP>
impl<FS, SP> UnwindSafe for Simplex<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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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