30 static constexpr auto tolerance = std::numeric_limits<value_type>::epsilon() * 10.0;
52 explicit AxesCoord(
const std::string& s,
bool ignore_err =
false) noexcept(false);
80 void unset(
int axis_loc);
87 bool isSet(
int axis_loc) const;
113 void setMap(
int map);
119 std::
string toString() const;
129 AxesCoord& fromString(const std::
string& s,
bool ignore_err = false) noexcept(false);
Template class for managing bit maks preferably when bits are defined as enumerate values.
Definition TSet.h:14
3-dimensional vector for math operations.
Definition TVector3D.h:17
Counted vector having additional methods and operators for ease of usage. This template class extends...
Definition TVector.h:19
All axis values in one structure accompanied by some handy manipulation methods.
Definition AxesCoord.h:13
double value_type
Type the axes values are stored in.
Definition AxesCoord.h:18
AxesCoord & operator>>(int axis_loc)
Unsets a axis value.
ECompare compare(const AxesCoord &ac, const AxesCoord &tolerances, const AxisLocations &rad_unlimited) const
Compares two coordinates using a second coordinate containing max differences.
vector3d_type getVector(bool all=true) const
Gets the 3D vector formed by the XYZ axis.
AxesCoord & offset(const vector3d_type &ofs)
Adds an offset to the existing coordinate.
AxesCoord(const AxesCoord &ac)
Copy constructor.
AxesCoord(const vector3d_type &vect)
Initializing constructor using a 3D vector.
bool isEqual(const AxesCoord &ac, const AxesCoord &tolerances={}) const
Compares if the given coord is equal to this one using the compare() method.
TVector< AxesCoord > Vector
Type definition.
Definition AxesCoord.h:286
AxesCoord & setVector(const vector3d_type &vect, bool all=true)
Sets the 3D vector formed by the XYZ axis.
ECompare
Result of the compare function.
Definition AxesCoord.h:191
AxisValue operator[](size_t axis_loc) const
Assigns a specific axis value to this structure.
AxesCoord()
Default constructor.
AxesCoord offsetBy(const vector3d_type &ofs) const
Adds an offset to the coordinate and returns the new formed coord.
ECompare compare(const AxesCoord &ac, const AxesCoord &tolerances) const
Compares two coordinates using a second coordinate containing max differences. Tests only the values ...
AxesCoord(const std::string &s, bool ignore_err=false) noexcept(false)
Constructor using a string containing the axis values.
TVector3D< value_type > vector3d_type
Type for the 3D vector.
Definition AxesCoord.h:23
Single position, speed or acceleration value of a specific axis.
Definition GmiTypes.h:174
#define _GMI_FUNC
Definition gmi/iface/global.h:34
#define _GMI_CLASS
Definition gmi/iface/global.h:35
TSet< EAxisLocation > AxisLocations
Bitmap set of axis locations.
Definition GmiTypes.h:141
@ alLastEntry
Last entry used in iterations.
Definition GmiTypes.h:131
Definition Application.h:10
_GII_FUNC std::istream & operator>>(std::istream &is, ResultData &)
Stream operator for setting up this instance with a setup std::string.
_GII_FUNC std::ostream & operator<<(std::ostream &os, const ResultData &)
Stream operator for the setup std::string.