Browse Source

Math: link to an Wikipedia article about vector projection.

Best would be if I had a diagram there too, but NO TIME FOR THAT
pull/603/head
Vladimír Vondruš 4 years ago
parent
commit
53b06a5a07
  1. 4
      src/Magnum/Math/Vector.h

4
src/Magnum/Math/Vector.h

@ -599,8 +599,8 @@ template<std::size_t size, class T> class Vector {
/**
* @brief Vector projected onto a line
*
* Returns a vector projected onto @p line. Enabled only for
* floating-point types. @f[
* Returns a vector [projected](https://en.wikipedia.org/wiki/Vector_projection)
* onto @p line. Enabled only for floating-point types. @f[
* \operatorname{proj}_{\boldsymbol{b}}\,(\boldsymbol{a}) = \frac{\boldsymbol a \cdot \boldsymbol b}{\boldsymbol b \cdot \boldsymbol b} \boldsymbol b
* @f]
* @see @ref Math::dot(), @ref projectedOntoNormalized()

Loading…
Cancel
Save