X-Git-Url: https://git.cworth.org/git?p=akamaru;a=blobdiff_plain;f=akamaru.h;h=77f8d580646a4acf3ef09003295238fa50d4f18f;hp=cf7bf8b682412c6970706af7c020d5cd291efa1a;hb=4b4b752bb845106529d270b73419b97e11d595c2;hpb=b5f68f48302a165bed1dd5f824373189eacd85b9 diff --git a/akamaru.h b/akamaru.h index cf7bf8b..77f8d58 100644 --- a/akamaru.h +++ b/akamaru.h @@ -69,7 +69,7 @@ struct _Polygon { int num_points; Point *points; Vector *normals; - int edge; + int enclosing; }; struct _Model { @@ -108,10 +108,12 @@ void string_init (String *string, Object *a, Object *b, double length); void spacer_init (Spacer *spacer, Object *a, Object *b, double length); void anchor_init (Anchor *anchor, Object *object, double x, double y); -void polygon_init (Polygon *p, int num_points, ...); +void polygon_init (Polygon *p, int enclosing, int num_points, ...); void polygon_init_diamond (Polygon *polygon, double x, double y); void polygon_init_rectangle (Polygon *polygon, double x0, double y0, double x1, double y1); +void polygon_init_enclosing_rectangle (Polygon *polygon, double x0, double y0, + double x1, double y1); void model_fini (Model *model);