]> git.cworth.org Git - akamaru/blobdiff - akamaru.h
Add init function for springs and clean up grid init.
[akamaru] / akamaru.h
index bfec60f70e36f99926e78188c492430d58124f64..1d4796c94fe39a6efbab6f03bdfd76a9c74a12b3 100644 (file)
--- a/akamaru.h
+++ b/akamaru.h
@@ -84,6 +84,12 @@ 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 string_init (String *string, 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,