X-Git-Url: https://git.cworth.org/git?p=akamaru;a=blobdiff_plain;f=akamaru.h;h=81eeb8545ab286219b727fde9e11265ab10db1d3;hp=bfec60f70e36f99926e78188c492430d58124f64;hb=4ea6cfd18613d299d62dc95a4d53161d89745935;hpb=6923ae2757901728f2bc4ef2162ca5d14ecfbd14 diff --git a/akamaru.h b/akamaru.h index bfec60f..81eeb85 100644 --- a/akamaru.h +++ b/akamaru.h @@ -84,6 +84,11 @@ struct _Model { double theta; }; +void object_init (Object *object, double x, double y, double mass); +void offset_spring_init (OffsetSpring *spring, + Object *a, Object *b, double dx, double dy); +void spring_init (Spring *spring, Object *a, Object *b, double length); + void polygon_init (Polygon *p, int num_points, ...); void polygon_init_diamond (Polygon *polygon, double x, double y); void polygon_init_rectangle (Polygon *polygon, double x0, double y0,