57 float x0 = line_pt_0->
pos.
x;
58 float x1 = line_pt_1->
pos.
x;
59 float y0 = line_pt_0->
pos.
y;
60 float y1 = line_pt_1->
pos.
y;
69 slope = (y0 - y1) / (x0 - x1);
70 intercept = y1 - x1 * slope;
73 p.
x = (
inT16) ((point->
pos.
x + (point->
pos.
y - intercept) * slope) /
75 p.
y = (
inT16) (slope * p.
x + intercept);
84 *near_pt =
closest(point, line_pt_0, line_pt_1);
bool near_point(EDGEPT *point, EDGEPT *line_pt_0, EDGEPT *line_pt_1, EDGEPT **near_pt)
#define is_on_line(p, p0, p1)
#define closest(test_p, p1, p2)
#define same_point(p1, p2)
EDGEPT * make_edgept(int x, int y, EDGEPT *next, EDGEPT *prev)