diff options
author | rodri <rgl@antares-labs.eu> | 2023-01-28 15:33:17 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2023-01-28 15:33:17 +0000 |
commit | 302a41f84da0884d1ac07d653868c7d0e7604362 (patch) | |
tree | 40e46d21437f9eb9bf38d2915185b8420c8c8112 /point.c | |
parent | fdeaa2423c582df8d9e9ae6b0e26d386b5531262 (diff) | |
download | libgeometry-302a41f84da0884d1ac07d653868c7d0e7604362.tar.gz libgeometry-302a41f84da0884d1ac07d653868c7d0e7604362.tar.bz2 libgeometry-302a41f84da0884d1ac07d653868c7d0e7604362.zip |
made edgeptcmp public. implemented centroid for Triangle[23], and a homogeneous-to-barycentric coordinates conversion function for Triangle2.
Diffstat (limited to 'point.c')
-rw-r--r-- | point.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) |