Functions | |
mirkl_bool_t | mirml_geom_pnpoly (unsigned int nvert, double *vertx, double *verty, double testx, double testy) |
Point inclusion in polygon test. More... | |
mirkl_bool_t | mirml_geom_pnpoly_int64v (unsigned int ncoord, mirkl_int64_t *vcoord, mirkl_int64_t testx, mirkl_int64_t testy) |
int | mirml_geom_rect_circle_itest (double rx, double ry, double rw, double rh, double ccx, double ccy, double cr, double *drmin, double *drmax) |
mirkl_bool_t mirml_geom_pnpoly | ( | unsigned int | nvert, |
double * | vertx, | ||
double * | verty, | ||
double | testx, | ||
double | testy | ||
) |
Point inclusion in polygon test.
[in] | nvert | Number of vertices in the polygon. |
[in] | vertx,verty | Arrays containing the x- and y-coordinates of the polygon's vertices. |
[in] | testx,testy | x- and y-coordinate of the test point. |
mirkl_bool_t mirml_geom_pnpoly_int64v | ( | unsigned int | ncoord, |
mirkl_int64_t * | vcoord, | ||
mirkl_int64_t | testx, | ||
mirkl_int64_t | testy | ||
) |
Version of mirml_geom_pnpoly for signed 64-bit integer numbers.
ncoord | Total number of coordinates in vcoord. Must be even. |
int mirml_geom_rect_circle_itest | ( | double | rx, |
double | ry, | ||
double | rw, | ||
double | rh, | ||
double | ccx, | ||
double | ccy, | ||
double | cr, | ||
double * | drmin, | ||
double * | drmax | ||
) |
Rectangle-circle intersection test. Rectangle is defined by coordinates of its top-left vertex (assuming that +x is to the right and +y is downwards) and its width and height.
drmin,drmax | If not NULL the minimal and maximal distances from circle center to the rectangle are set. |