Struct nalgebra::Vec0
[−]
[src]
pub struct Vec0<N>(pub PhantomData<N>);
Vector of dimension 0.
Methods
impl<N> Vec0<N>[src]
Trait Implementations
impl<N: Copy> Copy for Vec0<N>[src]
impl<N: Debug> Debug for Vec0<N>[src]
impl<N: Clone> Clone for Vec0<N>[src]
fn clone(&self) -> Vec0<N>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl<N: PartialEq> PartialEq for Vec0<N>[src]
fn eq(&self, __arg_0: &Vec0<N>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Vec0<N>) -> bool
This method tests for !=.
impl<N: Eq> Eq for Vec0<N>[src]
impl<N> Repeat<N> for Vec0<N>[src]
impl<N> Zero for Vec0<N>[src]
fn zero() -> Vec0<N>
Returns the additive identity element of Self, 0. Read more
fn is_zero(&self) -> bool
Returns true if self is equal to the additive identity.
impl<N> Index<usize> for Vec0<N>[src]
type Output = N
The returned type after indexing
fn index(&self, _: usize) -> &N
The method for the indexing (Foo[Bar]) operation
impl<N> IndexMut<usize> for Vec0<N>[src]
impl<N> Shape<usize> for Vec0<N>[src]
impl<N> Indexable<usize, N> for Vec0<N>[src]
fn swap(&mut self, _: usize, _: usize)
Swaps the i-th element of self with its j-th element.
unsafe fn unsafe_at(&self, _: usize) -> N
Reads the i-th element of self. Read more
unsafe fn unsafe_set(&mut self, _: usize, _: N)
Writes to the i-th element of self. Read more
impl<N: 'static> Iterable<N> for Vec0<N>[src]
impl<N: 'static> IterableMut<N> for Vec0<N>[src]
impl<N> Dim for Vec0<N>[src]
impl<N> Basis for Vec0<N>[src]
fn canonical_basis<F: FnMut(Vec0<N>) -> bool>(_: F)
Iterates through the canonical basis of the space in which this object lives.
fn orthonormal_subspace_basis<F: FnMut(Vec0<N>) -> bool>(_: &Vec0<N>, _: F)
Iterates through a basis of the subspace orthogonal to self.
fn canonical_basis_element(_: usize) -> Option<Vec0<N>>
Gets the ith element of the canonical basis.
impl<N, T> Add<T> for Vec0<N>[src]
type Output = Vec0<N>
The resulting type after applying the + operator
fn add(self, _: T) -> Vec0<N>
The method for the + operator
impl<N, T> Sub<T> for Vec0<N>[src]
type Output = Vec0<N>
The resulting type after applying the - operator
fn sub(self, _: T) -> Vec0<N>
The method for the - operator
impl<N: Neg<Output=N> + Copy> Neg for Vec0<N>[src]
type Output = Vec0<N>
The resulting type after applying the - operator
fn neg(self) -> Vec0<N>
The method for the unary - operator
impl<N: BaseNum> Dot<N> for Vec0<N>[src]
impl<N, T> Mul<T> for Vec0<N>[src]
type Output = Vec0<N>
The resulting type after applying the * operator
fn mul(self, _: T) -> Vec0<N>
The method for the * operator
impl<N, T> Div<T> for Vec0<N>[src]
type Output = Vec0<N>
The resulting type after applying the / operator
fn div(self, _: T) -> Vec0<N>
The method for the / operator
impl<N: Copy + Add<N, Output=N> + Neg<Output=N>> Translation<Vec0<N>> for Vec0<N>[src]
fn translation(&self) -> Vec0<N>
Gets the translation associated with this object.
fn inv_translation(&self) -> Vec0<N>
Gets the inverse translation associated with this object.
fn append_translation_mut(&mut self, t: &Vec0<N>)
Appends a translation to this object.
fn append_translation(&self, t: &Vec0<N>) -> Vec0<N>
Appends the translation amount to a copy of t.
fn prepend_translation_mut(&mut self, t: &Vec0<N>)
Prepends a translation to this object.
fn prepend_translation(&self, t: &Vec0<N>) -> Vec0<N>
Prepends the translation amount to a copy of t.
fn set_translation(&mut self, _: Vec0<N>)
Sets the translation.
impl<N: BaseFloat> Norm<N> for Vec0<N>[src]
fn sqnorm(&self) -> N
Computes the squared norm of self. Read more
fn norm(&self) -> N
Computes the norm of self.
fn normalize(&self) -> Vec0<N>
Gets the normalized version of a copy of v.
fn normalize_mut(&mut self) -> N
Normalizes self.
impl<N: ApproxEq<N>> ApproxEq<N> for Vec0<N>[src]
fn approx_epsilon(_: Option<Vec0<N>>) -> N
Default epsilon for approximation.
fn approx_ulps(_: Option<Vec0<N>>) -> u32
Default ULPs for approximation.
fn approx_eq_eps(&self, _: &Vec0<N>, _: &N) -> bool
Tests approximate equality using a custom epsilon.
fn approx_eq_ulps(&self, _: &Vec0<N>, _: u32) -> bool
Tests approximate equality using units in the last place (ULPs)
fn approx_eq(&self, other: &Self) -> bool
Tests approximate equality.
impl<N: One> One for Vec0<N>[src]
impl<N> FromIterator<N> for Vec0<N>[src]
fn from_iter<I: IntoIterator<Item=N>>(_: I) -> Vec0<N>
Creates a value from an iterator. Read more