HighMap library (C++)
Loading...
Searching...
No Matches
distance_functions.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  hmap
 

Enumerations

enum  hmap::DistanceFunction : int { hmap::CHEBYSHEV , hmap::EUCLIDIAN , hmap::EUCLISHEV , hmap::MANHATTAN }
 Distance function type. More...
 
enum  hmap::DistanceFunctionAxis : int { hmap::DFA_X , hmap::DFA_Y , hmap::DFA_XY }
 Axis used for the distance function. More...
 

Functions

std::function< float(float, float)> hmap::get_distance_function (DistanceFunction dist_fct, DistanceFunctionAxis dfa=DistanceFunctionAxis::DFA_XY)
 Return the requested distance function.
 

Detailed Description

Author
Otto Link (otto..nosp@m.link.nosp@m..bv@g.nosp@m.mail.nosp@m..com)