aboutsummaryrefslogtreecommitdiff
path: root/redist/linmath.h
diff options
context:
space:
mode:
authorJustin Berger <j.david.berger@gmail.com>2018-04-01 07:29:19 -0600
committerJustin Berger <j.david.berger@gmail.com>2018-04-01 15:37:48 -0600
commit558429f4d01462edb606fe51d592e9f9e3889425 (patch)
tree64178fe671438928a47f9dd96570d5ff9c4c8f9f /redist/linmath.h
parent2a5a0bde0fa45f86b1fcfbfd50bb779f25337573 (diff)
downloadlibsurvive-558429f4d01462edb606fe51d592e9f9e3889425.tar.gz
libsurvive-558429f4d01462edb606fe51d592e9f9e3889425.tar.bz2
Added distance function to linmath
Diffstat (limited to 'redist/linmath.h')
-rw-r--r--redist/linmath.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/redist/linmath.h b/redist/linmath.h
index 71fd9b0..76e1322 100644
--- a/redist/linmath.h
+++ b/redist/linmath.h
@@ -6,7 +6,7 @@
#ifdef __cplusplus
extern "C" {
#endif
-
+
// Yes, I know it's kind of arbitrary.
#define DEFAULT_EPSILON 0.001
@@ -82,7 +82,7 @@ int compare3d(const FLT *a, const FLT *b, FLT epsilon);
void copy3d(FLT *out, const FLT *in);
FLT magnitude3d(const FLT *a);
-
+FLT dist3d(const FLT *a, const FLT *b);
FLT anglebetween3d(FLT *a, FLT *b);
void rotatearoundaxis(FLT *outvec3, FLT *invec3, FLT *axis, FLT angle);