summaryrefslogtreecommitdiff
path: root/libs/pbd/pbd/cartesian.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/pbd/pbd/cartesian.h')
-rw-r--r--libs/pbd/pbd/cartesian.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/libs/pbd/pbd/cartesian.h b/libs/pbd/pbd/cartesian.h
index ffc91c2fd6..5f0b951d5f 100644
--- a/libs/pbd/pbd/cartesian.h
+++ b/libs/pbd/pbd/cartesian.h
@@ -22,14 +22,16 @@
#include <cfloat>
#include <cmath>
+#include "pbd/libpbd_visibility.h"
+
namespace PBD {
-void spherical_to_cartesian (double azi, double ele, double len, double& x, double& y, double& z);
-void cartesian_to_spherical (double x, double y, double z, double& azi, double& ele, double& len);
+LIBPBD_API void spherical_to_cartesian (double azi, double ele, double len, double& x, double& y, double& z);
+LIBPBD_API void cartesian_to_spherical (double x, double y, double z, double& azi, double& ele, double& len);
struct AngularVector;
-struct CartesianVector {
+struct LIBPBD_API CartesianVector {
double x;
double y;
double z;
@@ -51,10 +53,10 @@ struct CartesianVector {
return other;
}
- void angular (AngularVector&) const;
+ inline void angular (AngularVector& a) const;
};
-struct AngularVector {
+struct LIBPBD_API AngularVector {
double azi;
double ele;
double length;