Trait nalgebra::PntAsVec
[−]
[src]
pub trait PntAsVec<V> { fn to_vec(self) -> V; fn as_vec<'a>(&'a self) -> &'a V; fn set_coords(&mut self, coords: V); }
Trait that relates a point of an affine space to a vector of the associated vector space.
Required Methods
fn to_vec(self) -> V
Converts this point to its associated vector.
fn as_vec<'a>(&'a self) -> &'a V
Converts a reference to this point to a reference to its associated vector.
fn set_coords(&mut self, coords: V)
Sets the coordinates of this point to match those of a given vector.