Class EuclideanNorm

Class Documentation

class EuclideanNorm

Functor for euclidean norms.

This class can calculate euclidean norms for any type (int, float, double).

Public Functions

template<typename T>
inline T operator()(const T &x1, const T &x2)

Functor operator for euclidean norms of dimension 2.

Parameters:
  • x1 – : first argument

  • x2 – : second argument

Returns:

T : result of the input.

template<typename T>
inline T operator()(const T &x1, const T &x2, const T &x3)

Functor operator for euclidean norms of dimension 3.

Parameters:
  • x1 – : first argument

  • x2 – : second argument

  • x3 – : third argument

Returns:

T : result of the input.