Distance#

template<typename T>
inline T::value_type Distance(
const T &v1,
const T &v2,
)#

Computes the distance between two vectors.

Helper function mainly used by script interfaces

Template Parameters:

T – Vector type that supports subtraction and Length() function

Parameters:
  • v1[in] First vector

  • v2[in] Second vector

Returns:

Distance between v1 and v2