added flexibility

This commit is contained in:
Dominik Demuth
2024-11-28 11:07:44 +01:00
parent 4b8922ab55
commit 1c8befac3f
40 changed files with 629 additions and 476 deletions

20
src/motions/coordinates.h Normal file
View File

@@ -0,0 +1,20 @@
#ifndef COORDINATES_H
#define COORDINATES_H
struct SphericalPos {
double cos_theta;
double phi;
};
struct CartesianPos {
double x;
double y;
double z;
};
SphericalPos rotate(const SphericalPos&, double, double);
CartesianPos spherical_to_xyz(const SphericalPos&);
SphericalPos xyz_to_spherical(const CartesianPos&);
#endif //COORDINATES_H