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

Go to the source code of this file.

Namespaces

namespace  hmap
 

Functions

int hmap::convert_length_to_pixel (float x, int nx, bool lim_inf=true, bool lim_sup=false, float scale=1.f)
 Converts a length value to a pixel index in a discretized space.
 
void hmap::grid_xy_vector (std::vector< float > &x, std::vector< float > &y, Vec2< int > shape, Vec4< float > bbox={0.f, 1.f, 0.f, 1.f}, bool endpoint=false)
 Return x and y coordinates of a regular grid, as two 1D vectors.