summaryrefslogtreecommitdiff
path: root/vector.h
diff options
context:
space:
mode:
Diffstat (limited to 'vector.h')
-rw-r--r--vector.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/vector.h b/vector.h
index 24773c7..3838b63 100644
--- a/vector.h
+++ b/vector.h
@@ -1,6 +1,6 @@
#include <math.h>
-typedef double scalar;
+typedef float scalar;
typedef struct vector_t {
enum { RECT, SPH } type;
@@ -23,5 +23,6 @@ void vect_to_rect(vector*);
void vect_to_sph(vector*);
void vect_sub(vector*, const vector*);
void vect_negate(vector*);
+void vect_normalize(vector*);
scalar vect_dot(const vector *v1, const vector *v2);