Template Function mrpt::math::normalize(const VEC1&, VEC2&)

Function Documentation

template<class VEC1, class VEC2>
void mrpt::math::normalize(const VEC1 &v, VEC2 &out_v)

Normalize a vector, such as its norm is the unity. If the vector has a null norm, the output is a null vector.