pub struct Vector<'f, FS: FieldSignature + 'f> { /* private fields */ }Implementations§
Source§impl<'f, FS: FieldSignature> Vector<'f, FS>
impl<'f, FS: FieldSignature> Vector<'f, FS>
pub fn ambient_space(&self) -> AffineSpace<'f, FS>
pub fn construct( ambient_space: AffineSpace<'f, FS>, coordinate_func: impl FnMut(usize) -> FS::Set, ) -> Self
pub fn zero(ambient_space: AffineSpace<'f, FS>) -> Self
pub fn coordinate(&self, i: usize) -> &FS::Set
pub fn coordinate_mut(&mut self, i: usize) -> &mut FS::Set
pub fn into_coordinates(self) -> Vec<FS::Set>
pub fn into_row(&self) -> Matrix<FS::Set>
pub fn into_col(&self) -> Matrix<FS::Set>
Source§impl<'f, FS: FieldSignature> Vector<'f, FS>
impl<'f, FS: FieldSignature> Vector<'f, FS>
pub fn scalar_mul(&self, other: &FS::Set) -> Vector<'f, FS>
Trait Implementations§
Source§impl<'f, FS: FieldSignature> AddAssign<&Vector<'f, FS>> for Vector<'f, FS>
impl<'f, FS: FieldSignature> AddAssign<&Vector<'f, FS>> for Vector<'f, FS>
Source§fn add_assign(&mut self, other: &Vector<'f, FS>)
fn add_assign(&mut self, other: &Vector<'f, FS>)
Performs the
+= operation. Read moreSource§impl<'f, FS: FieldSignature> Debug for Vector<'f, FS>
impl<'f, FS: FieldSignature> Debug for Vector<'f, FS>
Source§impl<'f, FS: FieldSignature> DotProduct<&Vector<'f, FS>> for &Vector<'f, FS>
impl<'f, FS: FieldSignature> DotProduct<&Vector<'f, FS>> for &Vector<'f, FS>
Source§impl<'f, FS: FieldSignature> Hash for Vector<'f, FS>
impl<'f, FS: FieldSignature> Hash for Vector<'f, FS>
Source§impl<'f, FS: FieldSignature> Neg for &Vector<'f, FS>
impl<'f, FS: FieldSignature> Neg for &Vector<'f, FS>
Source§impl<'f, FS: OrderedRingSignature + FieldSignature> Ord for Vector<'f, FS>
impl<'f, FS: OrderedRingSignature + FieldSignature> Ord for Vector<'f, FS>
Source§impl<'f, FS: FieldSignature> PartialEq for Vector<'f, FS>
impl<'f, FS: FieldSignature> PartialEq for Vector<'f, FS>
Source§impl<'f, FS: OrderedRingSignature + FieldSignature> PartialOrd for Vector<'f, FS>
impl<'f, FS: OrderedRingSignature + FieldSignature> PartialOrd for Vector<'f, FS>
impl<'f, FS: FieldSignature> Eq for Vector<'f, FS>
Auto Trait Implementations§
impl<'f, FS> Freeze for Vector<'f, FS>
impl<'f, FS> RefUnwindSafe for Vector<'f, FS>
impl<'f, FS> Send for Vector<'f, FS>
impl<'f, FS> Sync for Vector<'f, FS>
impl<'f, FS> Unpin for Vector<'f, FS>
impl<'f, FS> UnsafeUnpin for Vector<'f, FS>
impl<'f, FS> UnwindSafe for Vector<'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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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