4 typedef struct _xy_pair Point;
5 typedef struct _xy_pair Vector;
10 typedef struct _Object Object;
11 typedef struct _Stick Stick;
12 typedef struct _String String;
13 typedef struct _Spring Spring;
14 typedef struct _OffsetSpring OffsetSpring;
15 typedef struct _Polygon Polygon;
16 typedef struct _Offset Offset;
17 typedef struct _Model Model;
23 Point previous_position;
51 struct _OffsetSpring {
74 int num_offset_springs;
75 OffsetSpring *offset_springs;
81 Object *anchor_object;
82 Vector anchor_position;
87 void polygon_init (Polygon *p, int num_points, ...);
88 void polygon_init_diamond (Polygon *polygon, double x, double y);
89 void polygon_init_rectangle (Polygon *polygon, double x0, double y0,
90 double x1, double y1);
92 void model_fini (Model *model);
94 void model_step (Model *model, double delta_t);
96 Object *model_find_nearest (Model *model, double x, double y);