From 302a41f84da0884d1ac07d653868c7d0e7604362 Mon Sep 17 00:00:00 2001 From: rodri Date: Sat, 28 Jan 2023 15:33:17 +0000 Subject: made edgeptcmp public. implemented centroid for Triangle[23], and a homogeneous-to-barycentric coordinates conversion function for Triangle2. --- point.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'point.c') diff --git a/point.c b/point.c index 91634f0..0267c41 100644 --- a/point.c +++ b/point.c @@ -79,6 +79,11 @@ normvec2(Point2 v) * * Juan Pineda, “A Parallel Algorithm for Polygon Rasterization”, * Computer Graphics, Vol. 22, No. 8, August 1988 + * + * comparison of a point p with an edge [e0 e1] + * p to the right: + + * p to the left: - + * p on the edge: 0 */ int edgeptcmp(Point2 e0, Point2 e1, Point2 p) -- cgit v1.2.3