The dot product allows for the definition of other useful operations, like finding the magnitude of a vector or normalizing it.
Examples include vectors and quaternions.
pub fn is_perpendicular(self, other: Self) -> bool where[src]
true if the vector is perpendicular (at right angles) to the
pub fn magnitude2(self) -> Self::Scalar[src]
Returns the squared magnitude.
This does not perform an expensive square root operation like in
InnerSpace::magnitude method, and so can be used to compare magnitudes
Returns the angle between two vectors in radians.
pub fn project_on(self, other: Self) -> Self[src]
Returns the vector projection of the current inner space projected onto the supplied argument.
The distance from the tail to the tip of the vector.
Returns a vector with the same direction, but with a magnitude of
pub fn normalize_to(self, magnitude: Self::Scalar) -> Self where[src]
Returns a vector with the same direction and a given magnitude.