Base: apply clang format

This commit is contained in:
wmayer
2023-11-10 18:27:44 +01:00
committed by WandererFan
parent 41528339e4
commit e85c383bff
154 changed files with 11874 additions and 9872 deletions

View File

@@ -26,7 +26,8 @@
#include "Axis.h"
namespace Base {
namespace Base
{
/**
* Describes a right-handed coordinate system in 3D space.
\author Werner Mayer
@@ -38,8 +39,13 @@ public:
* with X axis (1,0,0), with Y axis (0,1,0) and Z axis (0,0,1)
*/
CoordinateSystem();
CoordinateSystem(const CoordinateSystem&) = default;
CoordinateSystem(CoordinateSystem&&) = default;
~CoordinateSystem();
CoordinateSystem& operator=(const CoordinateSystem&) = default;
CoordinateSystem& operator=(CoordinateSystem&&) = default;
/** Sets the main axis. X and Y dir are adjusted accordingly.
* The main axis \a v must not be parallel to the X axis
*/
@@ -53,28 +59,40 @@ public:
*/
void setAxes(const Vector3d& n, const Vector3d& xd);
inline const Axis& getAxis() const
{ return axis; }
{
return axis;
}
/** The passed vector must not be parallel to the main axis */
void setXDirection(const Vector3d&);
inline const Vector3d& getXDirection() const
{ return xdir; }
{
return xdir;
}
/** The passed vector must not be parallel to the main axis */
void setYDirection(const Vector3d&);
inline const Vector3d& getYDirection() const
{ return ydir; }
{
return ydir;
}
/** Sets the main axis. X and Y dir are adjusted accordingly.
* The main axis must not be parallel to the X axis
*/
void setZDirection(const Vector3d&);
inline const Vector3d& getZDirection() const
{ return axis.getDirection(); }
{
return axis.getDirection();
}
inline void setPosition(const Vector3d& p)
{ axis.setBase(p); }
{
axis.setBase(p);
}
inline const Vector3d& getPosition() const
{ return axis.getBase(); }
{
return axis.getBase();
}
/** This computes the displacement from this coordinate system to the
* given coordinate system \a cs
@@ -99,6 +117,6 @@ private:
Vector3d ydir;
};
}
} // namespace Base
#endif // BASE_COORDINATESYSTEM_H
#endif // BASE_COORDINATESYSTEM_H