aboutsummaryrefslogtreecommitdiff
path: root/tools/lighthousefind_tori/find_tori_math.h
diff options
context:
space:
mode:
authorMike Turvey <mturvey6@gmail.com>2017-02-05 23:01:34 -0700
committerMichael Turvey <mturvey6@gmail.com>2017-02-05 23:57:51 -0700
commit7ea248577178f45033802ba5cc2867f8a66d69f8 (patch)
tree6bf3c7385d5aafc61e69a7d8dbe329bfeb52ec45 /tools/lighthousefind_tori/find_tori_math.h
parent2afbb0313dafe3f52a38ee2061cb1de8043d16e6 (diff)
downloadlibsurvive-7ea248577178f45033802ba5cc2867f8a66d69f8.tar.gz
libsurvive-7ea248577178f45033802ba5cc2867f8a66d69f8.tar.bz2
Adding lighthousefind_tori
Diffstat (limited to 'tools/lighthousefind_tori/find_tori_math.h')
-rw-r--r--tools/lighthousefind_tori/find_tori_math.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/tools/lighthousefind_tori/find_tori_math.h b/tools/lighthousefind_tori/find_tori_math.h
new file mode 100644
index 0000000..a10c3fc
--- /dev/null
+++ b/tools/lighthousefind_tori/find_tori_math.h
@@ -0,0 +1,23 @@
+#ifndef __FIND_TORI_MATH_H
+#define __FIND_TORI_MATH_H
+
+#include "tori_includes.h"
+
+Matrix3x3 inverseM33(const Matrix3x3 mat);
+double distance(Point a, Point b);
+
+void unit_m3(double m[3][3]);
+double dot_v3v3(const double a[3], const double b[3]);
+double normalize_v3(double n[3]);
+void cross_v3_v3v3(double r[3], const double a[3], const double b[3]);
+void mul_v3_v3fl(double r[3], const double a[3], double f);
+void ortho_v3_v3(double p[3], const double v[3]);
+void axis_angle_normalized_to_mat3_ex(
+ double mat[3][3],
+ const double axis[3],
+ const double angle_sin,
+ const double angle_cos);
+void rotation_between_vecs_to_mat3(double m[3][3], const double v1[3], const double v2[3]);
+
+
+#endif