[−][src]Trait aljabar::RealInnerSpace
Defines an InnerSpace where the Scalar is a real number. Automatically implemented.
Provided methods
fn magnitude(self) -> Self::Scalar
Returns the length of the vector.
fn normalize(self) -> Self where
Self::Scalar: One,
Self::Scalar: One,
Returns a vector with the same direction and a magnitude of 1
.
fn normalize_to(self, magnitude: Self::Scalar) -> Self
Returns a vector with the same direction and a given magnitude.
fn project_on(self, other: Self) -> Self
Returns the vector projection of the current inner space projected onto the supplied argument.
Implementors
impl<T> RealInnerSpace for T where
T: InnerSpace,
<T as VectorSpace>::Scalar: Real,
[src]
T: InnerSpace,
<T as VectorSpace>::Scalar: Real,