Function tool::core::geometry::projection_vector [−][src]
pub fn projection_vector<T>(
vector_1: &Vector<T>,
vector_2: &Vector<T>
) -> Vector<T> where
T: RealField,
Expand description
Project the first Vector
onto the second one.
Expression
The projection of $\bm{u}$ onto $\bm{v}$ is defined as,
$${\rm proj}_{\bm{v}}\left(\bm{u}\right)=\frac{\bm{u}\cdot\bm{v}}{\left\Vert\bm{v}\right\Vert}\frac{\bm{v}}{\left\Vert\bm{v}\right\Vert}$$