Go to the source code of this file.
|
| 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, glm::ivec2 shape, const UvRect &uv_rect=UvRect::unit(), bool endpoint=false) |
| | Return x and y coordinates of a regular grid, as two 1D vectors.
|
| void | hmap::rescale_grid_from_unit_square_to_bbox (std::vector< float > &x, std::vector< float > &y, const UvRect &uv_rect) |
| | Rescale 1D grid vectors from unit square [0, 1] to target UV rectangle.
|