diff options
Diffstat (limited to 'redist/linmath.h')
-rw-r--r-- | redist/linmath.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/redist/linmath.h b/redist/linmath.h index 676d182..66a38ed 100644 --- a/redist/linmath.h +++ b/redist/linmath.h @@ -89,9 +89,14 @@ void quatevenproduct( FLT * q, FLT * qa, FLT * qb ); 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 quatfrom2vectors(FLT *q, const FLT *src, const FLT *dest); +//Poses are Position: [x, y, z] Quaternion: [q, x, y, z] +//XXX TODO Write these! +void ApplyPoseToPoint( FLT * pout, const FLT * pin, const FLT * pose ); +void InvertPose( FLT * poseout, const FLT * pose ); + + // Matrix Stuff typedef struct @@ -105,7 +110,7 @@ Matrix3x3 inverseM33(const Matrix3x3 mat); void matrix44copy(FLT * mout, const FLT * minm ); - +void matrix44transpose(FLT * mout, const FLT * minm ); #endif |