Struct nalgebra::Vec5 [] [src]

pub struct Vec5<N> {
    pub x: N,
    pub y: N,
    pub z: N,
    pub w: N,
    pub a: N,
}

Vector of dimension 5.

Fields

x

First component of the vector.

y

Second component of the vector.

z

Third component of the vector.

w

Fourth component of the vector.

a

Fifth of the vector.

Methods

impl<N> Vec5<N>

fn new(x: N, y: N, z: N, w: N, a: N) -> Vec5<N>

Creates a new vector.

impl<N: Zero + One> Vec5<N>

fn x() -> Vec5<N>

Create a unit vector with its $compN component equal to 1.0.

fn y() -> Vec5<N>

Create a unit vector with its $compN component equal to 1.0.

fn z() -> Vec5<N>

Create a unit vector with its $compN component equal to 1.0.

fn w() -> Vec5<N>

Create a unit vector with its $compN component equal to 1.0.

fn a() -> Vec5<N>

Create a unit vector with its $compN component equal to 1.0.

impl<N> Vec5<N>

fn as_array(&self) -> &[N; 5]

View this vector as an array.

fn as_array_mut(&mut self) -> &mut [N; 5]

View this vector as a mutable array.

fn from_array_ref(array: &[N; 5]) -> &Vec5<N>

View an array as a vector.

fn from_array_mut(array: &mut [N; 5]) -> &mut Vec5<N>

View an array as a vector.

impl<N: Copy> Vec5<N>

unsafe fn at_fast(&self, i: usize) -> N

Unsafe read access to a vector element by index.

unsafe fn set_fast(&mut self, i: usize, val: N)

Unsafe write access to a vector element by index.

impl<N> Vec5<N>

fn len(&self) -> usize

impl<N> Vec5<N>

fn to_pnt(self) -> Pnt5<N>

fn as_pnt(&self) -> &Pnt5<N>

Trait Implementations

impl<N: BaseFloat> POrd for Vec5<N>

fn inf(&self, other: &Vec5<N>) -> Vec5<N>

fn sup(&self, other: &Vec5<N>) -> Vec5<N>

fn partial_cmp(&self, other: &Vec5<N>) -> POrdering

fn partial_lt(&self, other: &Vec5<N>) -> bool

fn partial_le(&self, other: &Vec5<N>) -> bool

fn partial_gt(&self, other: &Vec5<N>) -> bool

fn partial_ge(&self, other: &Vec5<N>) -> bool

fn partial_min<'a>(&'a self, other: &'a Self) -> Option<&'a Self>

fn partial_max<'a>(&'a self, other: &'a Self) -> Option<&'a Self>

fn partial_clamp<'a>(&'a self, min: &'a Self, max: &'a Self) -> Option<&'a Self>

impl<Nin: Copy, Nout: Copy + Cast<Nin>> Cast<Vec5<Nin>> for Vec5<Nout>

fn from(v: Vec5<Nin>) -> Vec5<Nout>

impl<N> Index<usize> for Vec5<N>

type Output = N

fn index(&self, i: usize) -> &N

impl<N> IndexMut<usize> for Vec5<N>

fn index_mut(&mut self, i: usize) -> &mut N

impl<N> Shape<usize> for Vec5<N>

fn shape(&self) -> usize

impl<N: Copy> Indexable<usize, N> for Vec5<N>

fn swap(&mut self, i1: usize, i2: usize)

unsafe fn unsafe_at(&self, i: usize) -> N

unsafe fn unsafe_set(&mut self, i: usize, val: N)

impl<N: Copy> Repeat<N> for Vec5<N>

fn repeat(val: N) -> Vec5<N>

impl<N> Dim for Vec5<N>

fn dim(_: Option<Vec5<N>>) -> usize

impl<N: BaseFloat + ApproxEq<N>> Basis for Vec5<N>

fn canonical_basis<F: FnMut(Vec5<N>) -> bool>(f: F)

fn orthonormal_subspace_basis<F: FnMut(Vec5<N>) -> bool>(n: &Vec5<N>, f: F)

fn canonical_basis_element(i: usize) -> Option<Vec5<N>>

impl<N: Add<N, Output=N>> Add<Vec5<N>> for Vec5<N>

type Output = Vec5<N>

fn add(self, right: Vec5<N>) -> Vec5<N>

impl<N: Sub<N, Output=N>> Sub<Vec5<N>> for Vec5<N>

type Output = Vec5<N>

fn sub(self, right: Vec5<N>) -> Vec5<N>

impl<N: Copy + Mul<N, Output=N>> Mul<Vec5<N>> for Vec5<N>

type Output = Vec5<N>

fn mul(self, right: Vec5<N>) -> Vec5<N>

impl<N: Copy + Div<N, Output=N>> Div<Vec5<N>> for Vec5<N>

type Output = Vec5<N>

fn div(self, right: Vec5<N>) -> Vec5<N>

impl<N: Copy + Add<N, Output=N>> Add<N> for Vec5<N>

type Output = Vec5<N>

fn add(self, right: N) -> Vec5<N>

impl<N: Copy + Sub<N, Output=N>> Sub<N> for Vec5<N>

type Output = Vec5<N>

fn sub(self, right: N) -> Vec5<N>

impl<N: Copy + Mul<N, Output=N>> Mul<N> for Vec5<N>

type Output = Vec5<N>

fn mul(self, right: N) -> Vec5<N>

impl<N: Copy + Div<N, Output=N>> Div<N> for Vec5<N>

type Output = Vec5<N>

fn div(self, right: N) -> Vec5<N>

impl<N: Neg<Output=N> + Copy> Neg for Vec5<N>

type Output = Vec5<N>

fn neg(self) -> Vec5<N>

impl<N: BaseNum> Dot<N> for Vec5<N>

fn dot(&self, other: &Vec5<N>) -> N

impl<N: Copy + Add<N, Output=N> + Neg<Output=N>> Translation<Vec5<N>> for Vec5<N>

fn translation(&self) -> Vec5<N>

fn inv_translation(&self) -> Vec5<N>

fn append_translation_mut(&mut self, t: &Vec5<N>)

fn append_translation(&self, t: &Vec5<N>) -> Vec5<N>

fn prepend_translation_mut(&mut self, t: &Vec5<N>)

fn prepend_translation(&self, t: &Vec5<N>) -> Vec5<N>

fn set_translation(&mut self, t: Vec5<N>)

impl<N: BaseFloat> Norm<N> for Vec5<N>

fn sqnorm(&self) -> N

fn normalize(&self) -> Vec5<N>

fn normalize_mut(&mut self) -> N

fn norm(&self) -> N

impl<N: ApproxEq<N>> ApproxEq<N> for Vec5<N>

fn approx_epsilon(_: Option<Vec5<N>>) -> N

fn approx_ulps(_: Option<Vec5<N>>) -> u32

fn approx_eq(&self, other: &Vec5<N>) -> bool

fn approx_eq_eps(&self, other: &Vec5<N>, eps: &N) -> bool

fn approx_eq_ulps(&self, other: &Vec5<N>, ulps: u32) -> bool

impl<N> One for Vec5<N> where N: Copy + One + Sub<N, Output=N> + Add<N, Output=N>

fn one() -> Vec5<N>

impl<N: Zero> Zero for Vec5<N>

fn zero() -> Vec5<N>

fn is_zero(&self) -> bool

impl<N> FromIterator<N> for Vec5<N>

fn from_iter<I: IntoIterator<Item=N>>(iterator: I) -> Vec5<N>

impl<N: Bounded> Bounded for Vec5<N>

fn max_value() -> Vec5<N>

fn min_value() -> Vec5<N>

impl<N: Axpy<N>> Axpy<N> for Vec5<N>

fn axpy(&mut self, a: &N, x: &Vec5<N>)

impl<N> Iterable<N> for Vec5<N>

fn iter<'l>(&'l self) -> Iter<'l, N>

impl<N> IterableMut<N> for Vec5<N>

fn iter_mut<'l>(&'l mut self) -> IterMut<'l, N>

impl<N: Copy + One + Zero> ToHomogeneous<Vec6<N>> for Vec5<N>

fn to_homogeneous(&self) -> Vec6<N>

impl<N: Copy + Div<N, Output=N> + One + Zero> FromHomogeneous<Vec6<N>> for Vec5<N>

fn from(v: &Vec6<N>) -> Vec5<N>

impl<N: Copy + Add<N, Output=N> + Sub<N, Output=N>> Translate<Pnt5<N>> for Vec5<N>

fn translate(&self, other: &Pnt5<N>) -> Pnt5<N>

fn inv_translate(&self, other: &Pnt5<N>) -> Pnt5<N>

impl<N, O: Copy> Rotate<O> for Vec5<N>

fn rotate(&self, other: &O) -> O

fn inv_rotate(&self, other: &O) -> O

impl<N: Copy + Add<N, Output=N> + Sub<N, Output=N>> Transform<Pnt5<N>> for Vec5<N>

fn transform(&self, other: &Pnt5<N>) -> Pnt5<N>

fn inv_transform(&self, other: &Pnt5<N>) -> Pnt5<N>

impl<N> NumVec<N> for Vec5<N> where N: BaseNum

impl<N> FloatVec<N> for Vec5<N> where N: BaseFloat + ApproxEq<N>

impl<N: Absolute<N>> Absolute<Vec5<N>> for Vec5<N>

fn abs(m: &Vec5<N>) -> Vec5<N>

impl<N: Rand> Rand for Vec5<N>

fn rand<R: Rng>(rng: &mut R) -> Vec5<N>

impl<N: Copy + BaseNum> Mul<Mat5<N>> for Vec5<N>

type Output = Vec5<N>

fn mul(self, right: Mat5<N>) -> Vec5<N>

impl<N: Copy + Mul<N, Output=N> + Zero> Outer for Vec5<N>

type OuterProductType = Mat5<N>

fn outer(&self, other: &Vec5<N>) -> Mat5<N>

Derived Implementations

impl<N: Copy> Copy for Vec5<N>

impl<N: Debug> Debug for Vec5<N>

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl<N: Hash> Hash for Vec5<N>

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl<N: Clone> Clone for Vec5<N>

fn clone(&self) -> Vec5<N>

fn clone_from(&mut self, source: &Self)

impl<N: Decodable> Decodable for Vec5<N>

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Vec5<N>, __D::Error>

impl<N: Encodable> Encodable for Vec5<N>

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl<N: PartialEq> PartialEq for Vec5<N>

fn eq(&self, __arg_0: &Vec5<N>) -> bool

fn ne(&self, __arg_0: &Vec5<N>) -> bool

impl<N: Eq> Eq for Vec5<N>