Function tool::core::geometry::projection_plane[][src]

pub fn projection_plane<T>(
    vector_1: &Vector<T>,
    vector_2: &Vector<T>
) -> Vector<T> where
    T: RealField, 
Expand description

Project the first Vector onto the plane described the second Vector (normal of the plane).

Expression

The projection of $\bm{u}$ onto the plane described by its normal $\bm{v}$ is defined by substracting the component of $\bm{u}$ that is orthogonal to the plane, from $\bm{u}$. The projection is given by,

$$\mathrm{proj}_{\mathrm{plane}\left(\bm{v}\right)}\left(\bm{u}\right)=\bm{u}-\mathrm{proj}_{\bm{v}}\left(\bm{u}\right)$$

where ${\rm proj}_{\bm{v}}\left(\bm{u}\right)$ is the vector projection of $\bm{u}$ onto $\bm{v}$.