From 7ea248577178f45033802ba5cc2867f8a66d69f8 Mon Sep 17 00:00:00 2001 From: Mike Turvey Date: Sun, 5 Feb 2017 23:01:34 -0700 Subject: Adding lighthousefind_tori --- tools/lighthousefind_tori/find_tori_math.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tools/lighthousefind_tori/find_tori_math.h (limited to 'tools/lighthousefind_tori/find_tori_math.h') 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 -- cgit v1.2.3