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