HighMap library (C++)
Loading...
Searching...
No Matches
find_path_midpoint.cpp File Reference

Namespaces

namespace  hmap

Functions

Point hmap::helper_pick_lowest (const Point &pa, const Point &pb, const Array &z, float max_offset, int steps)
std::vector< glm::ivec2 > hmap::find_path_midpoint (const Array &z, glm::ivec2 ij_start, glm::ivec2 ij_end, float offset_ratio=0.2f, int max_it=0, int steps=16)
 Compute a path between two points using iterative midpoint refinement.
void hmap::find_path_midpoint (const Array &z, glm::ivec2 ij_start, glm::ivec2 ij_end, std::vector< int > &i_path, std::vector< int > &j_path, float offset_ratio=0.2f, int max_it=0, int steps=16)
 Overload of find_path_midpoint returning path indices in i and j vectors.
Path hmap::find_path_midpoint (const Array &z, glm::ivec2 ij_start, glm::ivec2 ij_end, const UvRect &uv_rect, float offset_ratio=0.2f, int max_it=0, int steps=16)
 Overload of find_path_midpoint returning a Path mapped to a bounding box with point values holding sampled terrain elevations.