pub struct OrientedSimplex<'f, FS: OrderedRingSignature + FieldSignature> { /* private fields */ }Implementations§
Source§impl<'f, FS: OrderedRingSignature + FieldSignature> OrientedSimplex<'f, FS>
impl<'f, FS: OrderedRingSignature + FieldSignature> OrientedSimplex<'f, FS>
pub fn new_with_positive_point( ambient_space: AffineSpace<'f, FS>, points: Vec<Vector<'f, FS>>, ref_point: &Vector<'f, FS>, ) -> Result<Self, &'static str>
pub fn new_with_negative_point( ambient_space: AffineSpace<'f, FS>, points: Vec<Vector<'f, FS>>, ref_point: &Vector<'f, FS>, ) -> Result<Self, &'static str>
pub fn positive_point(&self) -> Option<Vector<'f, FS>>
pub fn negative_point(&self) -> Option<Vector<'f, FS>>
pub fn ambient_space(&self) -> AffineSpace<'f, FS>
pub fn simplex(&self) -> &Simplex<'f, FS>
pub fn into_simplex(self) -> Simplex<'f, FS>
pub fn into_oriented_hyperplane(self) -> OrientedHyperplane<'f, FS>
pub fn flip(&mut self)
pub fn classify_point(&self, point: &Vector<'f, FS>) -> OrientationSide
Trait Implementations§
Source§impl<'f, FS: Clone + OrderedRingSignature + FieldSignature> Clone for OrientedSimplex<'f, FS>
impl<'f, FS: Clone + OrderedRingSignature + FieldSignature> Clone for OrientedSimplex<'f, FS>
Source§fn clone(&self) -> OrientedSimplex<'f, FS>
fn clone(&self) -> OrientedSimplex<'f, FS>
Returns a duplicate 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<'f, FS: OrderedRingSignature + FieldSignature> Debug for OrientedSimplex<'f, FS>
impl<'f, FS: OrderedRingSignature + FieldSignature> Debug for OrientedSimplex<'f, FS>
Auto Trait Implementations§
impl<'f, FS> Freeze for OrientedSimplex<'f, FS>
impl<'f, FS> RefUnwindSafe for OrientedSimplex<'f, FS>
impl<'f, FS> Send for OrientedSimplex<'f, FS>
impl<'f, FS> Sync for OrientedSimplex<'f, FS>
impl<'f, FS> Unpin for OrientedSimplex<'f, FS>
impl<'f, FS> UnsafeUnpin for OrientedSimplex<'f, FS>
impl<'f, FS> UnwindSafe for OrientedSimplex<'f, FS>
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