Commit 3a8950da authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson

Handle horizontally aligned segments.

2003-04-10  Alexander Larsson  <alexl@redhat.com>

	* art_svp_wind.c (x_order_2):
	Handle horizontally aligned segments.
parent b298e5d3
2003-04-10 Alexander Larsson <alexl@redhat.com>
* art_svp_wind.c (x_order_2):
Handle horizontally aligned segments.
2002-11-25 Alexander Larsson <alexl@redhat.com>
* configure.in: Bump to 2.3.11
......
......@@ -333,6 +333,12 @@ x_order_2 (ArtPoint z0, ArtPoint z1, ArtPoint z2, ArtPoint z3)
else if (d1 < -EPSILON)
return 1;
if (z0.x == z1.x && z1.x == z2.x && z2.x == z3.x)
{
art_dprint ("x_order_2: colinear and horizontally aligned!\n");
return 0;
}
if (z0.x <= z2.x && z1.x <= z2.x && z0.x <= z3.x && z1.x <= z3.x)
return -1;
if (z0.x >= z2.x && z1.x >= z2.x && z0.x >= z3.x && z1.x >= z3.x)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment