42 float x0 = line_pt_0->
pos.
x;
43 float x1 = line_pt_1->
pos.
x;
44 float y0 = line_pt_0->
pos.
y;
45 float y1 = line_pt_1->
pos.
y;
49 p.x =
static_cast<int16_t
>(x0);
53 slope = (y0 - y1) / (x0 - x1);
54 intercept = y1 - x1 * slope;
57 p.x =
static_cast<int16_t
>((point->
pos.
x + (point->
pos.
y - intercept) * slope) /
59 p.y =
static_cast<int16_t
>(slope *
p.x + intercept);
68 *near_pt =
closest(point, line_pt_0, line_pt_1);
#define same_point(p1, p2)
#define is_on_line(p, p0, p1)
#define closest(test_p, p1, p2)
EDGEPT * make_edgept(TDimension x, TDimension y, EDGEPT *next, EDGEPT *prev)
bool near_point(EDGEPT *point, EDGEPT *line_pt_0, EDGEPT *line_pt_1, EDGEPT **near_pt)