diff options
author | Tom Brazier <tom_github@firstsolo.net> | 2023-06-05 15:02:07 +0100 |
---|---|---|
committer | Tom Brazier <tom_github@firstsolo.net> | 2023-07-23 14:00:51 +0100 |
commit | 91c278657ee5e424dcc1b7c83d078fde18cf8c55 (patch) | |
tree | afc78e7f15d65d164125224e8a89460978aca441 | |
parent | 049a84956400a4f764a850ec7c6e42c43a506c84 (diff) |
Export hamilton tools functions
-rw-r--r-- | compat/hamilton-tools.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/compat/hamilton-tools.h b/compat/hamilton-tools.h index 2e288225..6bcd7b5d 100644 --- a/compat/hamilton-tools.h +++ b/compat/hamilton-tools.h @@ -1,6 +1,8 @@ #pragma once +#include "export.hpp" #include "compat/math.hpp" + constexpr double TO_RAD = (M_PI / 180); constexpr double TO_DEG = (180 / M_PI); constexpr double EPSILON = 1e-30; @@ -19,9 +21,9 @@ struct tQuat {x = X; y = Y; z = Z; w = W;} }; -double VectorDistance(const double v1[], const tVector v2); -tVector Lerp (const tVector s, const double d[], const double alpha); -tQuat QuatFromYPR (const double YPR[]); -double AngleBetween (const tQuat S, const tQuat D); -tQuat Slerp (const tQuat S, const tQuat D, const double alpha); -void QuatToYPR (const tQuat Q, double YPR[]); +double OTR_COMPAT_EXPORT VectorDistance(const double v1[], const tVector v2); +tVector OTR_COMPAT_EXPORT Lerp (const tVector s, const double d[], const double alpha); +tQuat OTR_COMPAT_EXPORT QuatFromYPR (const double YPR[]); +double OTR_COMPAT_EXPORT AngleBetween (const tQuat S, const tQuat D); +tQuat OTR_COMPAT_EXPORT Slerp (const tQuat S, const tQuat D, const double alpha); +void OTR_COMPAT_EXPORT QuatToYPR (const tQuat Q, double YPR[]); |