Struct nalgebra::Pnt4
[−]
[src]
pub struct Pnt4<N> { pub x: N, pub y: N, pub z: N, pub w: N, }
Point of dimension 4.
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. |
Methods
impl<N> Pnt4<N>
impl<N> Pnt4<N>
fn as_array(&self) -> &[N; 4]
View this vector as an array.
fn as_array_mut(&mut self) -> &mut [N; 4]
View this vector as a mutable array.
fn from_array_ref(array: &[N; 4]) -> &Pnt4<N>
View an array as a vector.
fn from_array_mut(array: &mut [N; 4]) -> &mut Pnt4<N>
View an array as a vector.
impl<N: Copy> Pnt4<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> Pnt4<N>
impl<N> Pnt4<N>
fn to_vec(self) -> Vec4<N>
Converts this point to its associated vector.
fn as_vec<'a>(&'a self) -> &'a Vec4<N>
Converts a reference to this point to a reference to its associated vector.