57 std::vector<float> &y,
59 Vec4<float> 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:28
void 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.
Definition grid.cpp:109
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