57 std::vector<float> &y,
59 glm::vec4 bbox = {0.f, 1.f, 0.f, 1.f},
60 bool endpoint =
false);
Header file defining basic vector and matrix manipulation classes.
Declaration of the Array class for 2D floating-point arrays with various mathematical operations and ...
Definition algebra.hpp:22
int 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.
Definition grid.cpp:15
void grid_xy_vector(std::vector< float > &x, std::vector< float > &y, glm::ivec2 shape, glm::vec4 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.
Definition grid.cpp:109