projects
/
hackover2013-badge-firmware.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Hunde.
[hackover2013-badge-firmware.git]
/
badge
/
util
/
rectangle.h
diff --git
a/badge/util/rectangle.h
b/badge/util/rectangle.h
index
39ba5ca
..
4e352f0
100644
(file)
--- a/
badge/util/rectangle.h
+++ b/
badge/util/rectangle.h
@@
-17,6
+17,14
@@
static inline vec2d vec2d_add(vec2d v1, vec2d v2) {
return r;
}
+static inline vec2d vec2d_neg(vec2d v) {
+ vec2d r = {
+ fixed_point_neg(v.x),
+ fixed_point_neg(v.y)
+ };
+ return r;
+}
+
typedef struct {
vec2d pos;
vec2d extent;
This page took
0.022661 seconds
and
4
git commands to generate.