1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
/** * Magnitude.hh * * Created on: 31 oct. 2012 * Author: AKKA IS */ #ifndef MAGNITUDE_HH_ #define MAGNITUDE_HH_ #include <vector> /** * @bried Compute the magnitude of el * @return sqrtf(vec[0] * vec[0] + vec[1] * vec[1] + vec[2] * vec[2]); */ float magnitude(const std::vector<float>& el); #endif /* MAGNITUDE_HH_ */