Distance


Return distance between arguments.

You can find more information in comments below.

template<class TYPE>
TYPE Distance(const TVec1<TYPE> &a, const TVec1<TYPE> &b); // Return distance between points
template<class TYPE>
TYPE Distance(const TVec2<TYPE> &a, const TVec2<TYPE> &b); // Return distance between points
template<class TYPE>
TYPE Distance(const TVec3<TYPE> &a, const TVec3<TYPE> &b); // Return distance between points
template<class TYPE>
TYPE Distance(const TVec4<TYPE> &a, const TVec4<TYPE> &b); // Return distance between points
template<class TYPE>
TYPE Distance(const TPlane<TYPE> &p, const TVec2<TYPE> &v); // Return distance from plane to 2D point
template<class TYPE>
TYPE Distance(const TPlane<TYPE> &p, const TVec3<TYPE> &v); // Return distance from plane to 3D point
template<class TYPE, size_t SIZE, size_t ...Dimensions>
TYPE Distance(const TTensor<TYPE, SIZE, Dimensions...> &a, const TTensor<TYPE, SIZE, Dimensions...> &b); // Return distance from other tensor
Namespace: ntl
Include: NTL/Core/Vec1.h (For TVec1 arguments)
NTL/Core/Vec2.h (For TVec2 arguments)
NTL/Core/Vec3.h (For TVec3 arguments)
NTL/Core/Vec4.h (For TVec4 arguments)
NTL/Core/Plane.h (For functions with TPlane first argument)
NTL/Core/Tensor.h (For functions with TTensor first argument)