1 #ifndef _SURFACEINSPECTOR_MATHS_DISTANCES_HPP_
2 #define _SURFACEINSPECTOR_MATHS_DISTANCES_HPP_
5 #include <surfaceinspector/util/Object.hpp>
10 namespace SurfaceInspector{
namespace maths {
36 static T
manhattan(vector<T>
const &p, vector<T>
const &q);
51 static T
euclidean(vector<T>
const &p, vector<T>
const &q);
57 T
const px, T
const py,
58 T
const qx, T
const qy
65 T
const px, T
const py, T
const pz,
66 T
const qx, T
const qy, T
const qz
82 static T
minkowski(
int d, vector<T>
const &p, vector<T>
const &q);
86 #include <maths/Distances.tpp>
Class providing common distance computations.
Definition: Distances.hpp:18
static T euclidean(vector< T > const &p, vector< T > const &q)
Compute the euclidean distance between p and q.
static T euclidean(T const px, T const py, T const pz, T const qx, T const qy, T const qz)
static T manhattan(vector< T > const &p, vector< T > const &q)
Compute the manhattan distance between p and q.
static T euclidean(T const px, T const py, T const qx, T const qy)
static T minkowski(int d, vector< T > const &p, vector< T > const &q)
Compute the minkowski distance between p and q.
Class representing an object. All surface inspector classes must extend Object.
Definition: Object.hpp:12