diff options
Diffstat (limited to 'lib/types.h')
| -rw-r--r-- | lib/types.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/types.h b/lib/types.h index afffd4f..0619c8a 100644 --- a/lib/types.h +++ b/lib/types.h @@ -2,3 +2,9 @@ typedef struct { float x; float y; } vec2; + +vec2 dp_vec2_new(float, float); +vec2 dp_vec2_add(vec2, vec2); +vec2 dp_vec2_sub(vec2, vec2); +vec2 dp_vec2_mul(vec2, float scalar); +vec2 dp_vec2_dot(vec2, vec2); |
