pub struct AffineSpace<FS: OrderedRingStructure + FieldStructure> { /* private fields */ }Implementations§
Source§impl<FS: OrderedRingStructure + FieldStructure> AffineSpace<FS>
impl<FS: OrderedRingStructure + FieldStructure> AffineSpace<FS>
pub fn new_affine(ordered_field: Rc<FS>, affine_dimension: usize) -> Self
pub fn new_empty(ordered_field: Rc<FS>) -> Self
pub fn new_linear(ordered_field: Rc<FS>, linear_dimension: usize) -> Self
pub fn ordered_field(&self) -> Rc<FS>
pub fn origin<SP: Borrow<Self> + Clone + From<Self>>( &self, ) -> Option<Vector<FS, SP>>
pub fn linear_dimension(&self) -> Option<usize>
pub fn affine_dimension(&self) -> usize
pub fn rows_from_vectors( &self, vecs: Vec<&Vector<FS, impl Borrow<Self>>>, ) -> Matrix<FS::Set>
pub fn cols_from_vectors( &self, vecs: Vec<&Vector<FS, impl Borrow<Self>>>, ) -> Matrix<FS::Set>
pub fn determinant(&self, vecs: Vec<&Vector<FS, impl Borrow<Self>>>) -> FS::Set
pub fn rank(&self, vecs: Vec<&Vector<FS, impl Borrow<Self>>>) -> usize
pub fn are_points_affine_independent( &self, points: Vec<&Vector<FS, impl Borrow<Self> + Clone>>, ) -> bool
Trait Implementations§
Source§impl<FS: Clone + OrderedRingStructure + FieldStructure> Clone for AffineSpace<FS>
impl<FS: Clone + OrderedRingStructure + FieldStructure> Clone for AffineSpace<FS>
Source§fn clone(&self) -> AffineSpace<FS>
fn clone(&self) -> AffineSpace<FS>
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: Debug + OrderedRingStructure + FieldStructure> Debug for AffineSpace<FS>
impl<FS: Debug + OrderedRingStructure + FieldStructure> Debug for AffineSpace<FS>
Source§impl<FS: OrderedRingStructure + FieldStructure + Hash> Hash for AffineSpace<FS>
impl<FS: OrderedRingStructure + FieldStructure + Hash> Hash for AffineSpace<FS>
Source§impl<FS: OrderedRingStructure + FieldStructure> PartialEq for AffineSpace<FS>
impl<FS: OrderedRingStructure + FieldStructure> PartialEq for AffineSpace<FS>
impl<FS: OrderedRingStructure + FieldStructure> Eq for AffineSpace<FS>
Auto Trait Implementations§
impl<FS> Freeze for AffineSpace<FS>
impl<FS> RefUnwindSafe for AffineSpace<FS>where
FS: RefUnwindSafe,
impl<FS> !Send for AffineSpace<FS>
impl<FS> !Sync for AffineSpace<FS>
impl<FS> Unpin for AffineSpace<FS>
impl<FS> UnwindSafe for AffineSpace<FS>where
FS: RefUnwindSafe,
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