]> git.cworth.org Git - akamaru/blobdiff - akamaru.h
Add init functions for various objects, clean up model initializations.
[akamaru] / akamaru.h
index bfec60f70e36f99926e78188c492430d58124f64..81eeb8545ab286219b727fde9e11265ab10db1d3 100644 (file)
--- 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,