Struct nalgebra::Pnt5
[−]
[src]
pub struct Pnt5<N> { pub x: N, pub y: N, pub z: N, pub w: N, pub a: N, }
Point of dimension 5.
Fields
x | First component of the point. |
y | Second component of the point. |
z | Third component of the point. |
w | Fourth component of the point. |
a | Fifth of the point. |
Methods
impl<N> Pnt5<N>
impl<N> Pnt5<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]) -> &Pnt5<N>
View an array as a vector.
fn from_array_mut(array: &mut [N; 5]) -> &mut Pnt5<N>
View an array as a vector.
impl<N: Copy> Pnt5<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> Pnt5<N>
impl<N> Pnt5<N>
fn to_vec(self) -> Vec5<N>
Converts this point to its associated vector.
fn as_vec<'a>(&'a self) -> &'a Vec5<N>
Converts a reference to this point to a reference to its associated vector.