Fortschrittspeichern funktionstüchtig.
[hackover2013-badge-firmware.git] / badge / util / rectangle.h
index 4fe5c0e..70d43ba 100644 (file)
@@ -13,7 +13,14 @@ static inline vec2d vec2d_add(vec2d v1, vec2d v2) {
     fixed_point_add(v1.x, v2.x),
     fixed_point_add(v1.y, v2.y)
   };
+  return r;
+}
 
+static inline vec2d vec2d_sub(vec2d v1, vec2d v2) {
+  vec2d r = {
+    fixed_point_sub(v1.x, v2.x),
+    fixed_point_sub(v1.y, v2.y)
+  };
   return r;
 }
 
This page took 0.041027 seconds and 4 git commands to generate.