Struct nalgebra::DVector3 [] [src]

pub struct DVector3<N> { /* fields omitted */ }

Stack-allocated, dynamically sized vector with a maximum size of 3.

Methods

impl<N: Zero + Copy + Clone> DVector3<N>
[src]

Tests if all components of the vector are zeroes.

impl<N: Zero + Copy + Clone> DVector3<N>
[src]

Builds a vector filled with zeros.

Arguments

  • dimension - The dimension of the vector.

impl<N: One + Zero + Copy + Clone> DVector3<N>
[src]

Builds a vector filled with ones.

Arguments

  • dimension - The dimension of the vector.

impl<N: Rand + Zero> DVector3<N>
[src]

Builds a vector filled with random values.

impl<N: BaseFloat + ApproxEq<N>> DVector3<N>
[src]

Computes the canonical basis for the given dimension. A canonical basis is a set of vectors, mutually orthogonal, with all its component equal to 0.0 except one which is equal to 1.0.

Computes a basis of the space orthogonal to the vector. If the input vector is of dimension n, this will return n - 1 vectors.

impl<N> DVector3<N>
[src]

The number of elements of this vector.

Creates an uninitialized vector of dimension dimension.

impl<N: Copy + Zero> DVector3<N>
[src]

Builds a vector filled with a constant.

impl<N: Copy + Zero> DVector3<N>
[src]

Builds a vector filled with the components provided by a vector.

The vector must have at least dimension elements.

impl<N: Zero> DVector3<N>
[src]

Builds a vector filled with the result of a function.

Trait Implementations

impl<N> Mul<DMatrix3<N>> for DVector3<N> where N: Copy + Add<N, Output=N> + Mul<N, Output=N> + Zero
[src]

The resulting type after applying the * operator

The method for the * operator

impl<'a, N> Mul<DMatrix3<N>> for &'a DVector3<N> where N: Copy + Add<N, Output=N> + Mul<N, Output=N> + Zero
[src]

The resulting type after applying the * operator

The method for the * operator

impl<'a, N> Mul<&'a DMatrix3<N>> for DVector3<N> where N: Copy + Add<N, Output=N> + Mul<N, Output=N> + Zero
[src]

The resulting type after applying the * operator

The method for the * operator

impl<'a, 'b, N> Mul<&'b DMatrix3<N>> for &'a DVector3<N> where N: Copy + Add<N, Output=N> + Mul<N, Output=N> + Zero
[src]

The resulting type after applying the * operator

The method for the * operator

impl<N> MulAssign<DMatrix3<N>> for DVector3<N> where N: Copy + Mul<N, Output=N> + Add<N, Output=N> + Zero
[src]

The method for the *= operator

impl<'a, N> MulAssign<&'a DMatrix3<N>> for DVector3<N> where N: Copy + Mul<N, Output=N> + Add<N, Output=N> + Zero
[src]

The method for the *= operator

impl<N> AsRef<[N]> for DVector3<N>
[src]

Performs the conversion.

impl<N> AsMut<[N]> for DVector3<N>
[src]

Performs the conversion.

impl<N> Shape<usize> for DVector3<N>
[src]

Returns the shape of an indexable object.

impl<N: Copy> Indexable<usize, N> for DVector3<N>
[src]

Swaps the i-th element of self with its j-th element.

Reads the i-th element of self. Read more

Writes to the i-th element of self. Read more

impl<N, T> Index<T> for DVector3<N> where [N]: Index<T>
[src]

The returned type after indexing

The method for the indexing (Foo[Bar]) operation

impl<N, T> IndexMut<T> for DVector3<N> where [N]: IndexMut<T>
[src]

The method for the indexing (Foo[Bar]) operation

impl<N> Iterable<N> for DVector3<N>
[src]

Gets a vector-like read-only iterator.

impl<N> IterableMut<N> for DVector3<N>
[src]

Gets a vector-like read-write iterator.

impl<N: Copy + Add<N, Output=N> + Mul<N, Output=N>> Axpy<N> for DVector3<N>
[src]

Adds $$a * x$$ to self.

impl<N: Copy + Mul<N, Output=N> + Zero> Mul<DVector3<N>> for DVector3<N>
[src]

The resulting type after applying the * operator

The method for the * operator

impl<N: Copy + Mul<N, Output=N> + Zero> Mul<N> for DVector3<N>
[src]

The resulting type after applying the * operator

The method for the * operator

impl<N> MulAssign<DVector3<N>> for DVector3<N> where N: Copy + MulAssign<N> + Zero
[src]

The method for the *= operator

impl<N> MulAssign<N> for DVector3<N> where N: Copy + MulAssign<N> + Zero
[src]

The method for the *= operator

impl<N: Copy + Div<N, Output=N> + Zero> Div<DVector3<N>> for DVector3<N>
[src]

The resulting type after applying the / operator

The method for the / operator

impl<N: Copy + Div<N, Output=N> + Zero> Div<N> for DVector3<N>
[src]

The resulting type after applying the / operator

The method for the / operator

impl<N> DivAssign<DVector3<N>> for DVector3<N> where N: Copy + DivAssign<N> + Zero
[src]

The method for the /= operator

impl<N> DivAssign<N> for DVector3<N> where N: Copy + DivAssign<N> + Zero
[src]

The method for the /= operator

impl<N: Copy + Add<N, Output=N> + Zero> Add<DVector3<N>> for DVector3<N>
[src]

The resulting type after applying the + operator

The method for the + operator

impl<N: Copy + Add<N, Output=N> + Zero> Add<N> for DVector3<N>
[src]

The resulting type after applying the + operator

The method for the + operator

impl<N> AddAssign<DVector3<N>> for DVector3<N> where N: Copy + AddAssign<N> + Zero
[src]

The method for the += operator

impl<N> AddAssign<N> for DVector3<N> where N: Copy + AddAssign<N> + Zero
[src]

The method for the += operator

impl<N: Copy + Sub<N, Output=N> + Zero> Sub<DVector3<N>> for DVector3<N>
[src]

The resulting type after applying the - operator

The method for the - operator

impl<N: Copy + Sub<N, Output=N> + Zero> Sub<N> for DVector3<N>
[src]

The resulting type after applying the - operator

The method for the - operator

impl<N> SubAssign<DVector3<N>> for DVector3<N> where N: Copy + SubAssign<N> + Zero
[src]

The method for the -= operator

impl<N> SubAssign<N> for DVector3<N> where N: Copy + SubAssign<N> + Zero
[src]

The method for the -= operator

impl<N: Neg<Output=N> + Zero + Copy> Neg for DVector3<N>
[src]

The resulting type after applying the - operator

The method for the unary - operator

impl<N: BaseNum> Dot<N> for DVector3<N>
[src]

Computes the dot (inner) product of two vectors.

impl<N: BaseFloat> Norm<N> for DVector3<N>
[src]

Computes the squared norm of self. Read more

Gets the normalized version of a copy of v.

Normalizes self.

Computes the norm of self.

impl<N: BaseFloat + Cast<f64>> Mean<N> for DVector3<N>
[src]

Computes the mean of the observations stored by v. Read more

impl<N: ApproxEq<N>> ApproxEq<N> for DVector3<N>
[src]

Default epsilon for approximation.

Default ULPs for approximation.

Tests approximate equality using a custom epsilon.

Tests approximate equality using units in the last place (ULPs)

Tests approximate equality.

impl<N: PartialEq> PartialEq for DVector3<N>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<N: Clone> Clone for DVector3<N>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<N: Zero> FromIterator<N> for DVector3<N>
[src]

Creates a value from an iterator. Read more