v2d.h
Go to the documentation of this file.
85 void r2d_rasterize(r2d_poly* poly, r2d_dvec2 ibox[2], r2d_real* dest_grid, r2d_rvec2 d, r2d_int polyorder);
void r2d_get_ibox(r2d_poly *poly, r2d_dvec2 ibox[2], r2d_rvec2 d)
Get the minimal box of grid indices for a polygon, given a grid cell spacing.
void r2d_clamp_ibox(r2d_poly *poly, r2d_dvec2 ibox[2], r2d_dvec2 clampbox[2], r2d_rvec2 d)
Get the minimal box of grid indices for a polygon, given a grid cell spacing, also clamping it to a u...
void r2d_rasterize(r2d_poly *poly, r2d_dvec2 ibox[2], r2d_real *dest_grid, r2d_rvec2 d, r2d_int polyorder)
Rasterize a polygon to the destination grid.
double r2d_real
Real type specifying the precision to be used in calculations.
Definition: r2d.h:40