appears to work on most edges

This commit is contained in:
Trammell Hudson 2014-12-14 13:10:16 -05:00
parent b0763e1f72
commit d1c03c3700

View File

@ -189,7 +189,7 @@ recurse(
{ {
trans_x = x2; trans_x = x2;
trans_y = y2; trans_y = y2;
rotate = atan2(y2, a-x2) * 180 / M_PI; rotate = -atan2(y2, a-x2) * 180 / M_PI;
} else } else
if (edge == 2) if (edge == 2)
{ {
@ -205,7 +205,7 @@ recurse(
rotate rotate
); );
recurse(f2, f->next_edge[edge]); recurse(f2, f->next_edge[(edge+start_edge) % 3]);
printf("</g>\n"); printf("</g>\n");
} }