Struct nalgebra::Vec1
[−]
[src]
pub struct Vec1<N> { pub x: N, }
Vector of dimension 1.
Fields
x | First component of the vector. |
Methods
impl<N> Vec1<N>
impl<N: Zero + One> Vec1<N>
impl<N> Vec1<N>
fn as_array(&self) -> &[N; 1]
View this vector as an array.
fn as_array_mut(&mut self) -> &mut [N; 1]
View this vector as a mutable array.
fn from_array_ref(array: &[N; 1]) -> &Vec1<N>
View an array as a vector.
fn from_array_mut(array: &mut [N; 1]) -> &mut Vec1<N>
View an array as a vector.
impl<N: Copy> Vec1<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.