32#define GEOMPROCS_API __declspec(dllexport)
34#define GEOMPROCS_API __declspec(dllimport)
85 r.
x = (p.
x + q.
x) / 2.;
86 r.
y = (p.
y + q.
y) / 2.;
94 r.
x = p.
x + t * (q.
x - p.
x);
95 r.
y = p.
y + t * (q.
y - p.
y);
geometric types and macros (e.g. points and boxes)
static pointf mid_pointf(pointf p, pointf q)
static point add_point(point p, point q)
static pointf add_pointf(pointf p, pointf q)
static pointf sub_pointf(pointf p, pointf q)
static point exch_xy(point p)
GEOMPROCS_API pointf cwrotatepf(pointf p, int cwrot)
static pointf scale(double c, pointf p)
GEOMPROCS_API int lineToBox(pointf p1, pointf p2, boxf b)
GEOMPROCS_API pointf ccwrotatepf(pointf p, int ccwrot)
GEOMPROCS_API boxf flip_rec_boxf(boxf b, pointf p)
static pointf exch_xyf(pointf p)
static bool boxf_overlap(boxf b0, boxf b1)
static pointf interpolate_pointf(double t, pointf p, pointf q)
static pointf perp(pointf p)
GEOMPROCS_API double ptToLine2(pointf l1, pointf l2, pointf p)
GEOMPROCS_API void rect2poly(pointf *p)
GEOMPROCS_API int line_intersect(pointf a, pointf b, pointf c, pointf d, pointf *p)