From 0586f134e02938e1a9dd86ad92e41c2b2443fee0 Mon Sep 17 00:00:00 2001 From: mwturvey Date: Tue, 7 Feb 2017 17:43:12 -0700 Subject: Replacing rotation matrix (wip) --- redist/linmath.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'redist/linmath.h') diff --git a/redist/linmath.h b/redist/linmath.h index 530d291..3b11c1b 100644 --- a/redist/linmath.h +++ b/redist/linmath.h @@ -59,7 +59,7 @@ int compare3d( const FLT * a, const FLT * b, FLT epsilon ); void copy3d( FLT * out, const FLT * in ); -FLT magnitude3d( FLT * a ); +FLT magnitude3d(const FLT * a ); FLT anglebetween3d( FLT * a, FLT * b ); @@ -87,6 +87,8 @@ void quatoddproduct( FLT * outvec3, FLT * qa, FLT * qb ); void quatslerp( FLT * q, const FLT * qa, const FLT * qb, FLT t ); void quatrotatevector( FLT * vec3out, const FLT * quat, const FLT * vec3in ); +void getRotationTo(FLT *q, const FLT *src, const FLT *dest); + // Matrix Stuff typedef struct -- cgit v1.2.3