61 return this->m_first.
distance(this->m_last);
71 return std::sqrt(dx*dx+dy*dy+dz*dz);
92 return this->m_first == other.
m_first && this->m_last == other.
m_last;
110 double tx=this->m_first.
m_X;
111 double ty=this->m_first.
m_Y;
112 double tz=this->m_first.
m_Z;
116 return std::sqrt(tx*tx+ty*ty+tz*tz)<std::sqrt(ox*ox+oy*oy+oz*oz);
148 bool isInArea(
double x_min,
double x_max,
double y_min,
double y_max)
const
182 return first ^ (last << 16) ^ (last >> 16);
x0
Definition: adore_set_goal.py:25
y0
Definition: adore_set_goal.py:26
Definition: areaofeffectconverter.h:20
a functor, which hashes a BorderID object -> std::unordered_set<BorderID,BorderIDHasher> amap(0);
Definition: borderid.h:176
CoordinateHasher ch
Definition: borderid.h:177
std::size_t operator()(const BorderID &b) const
Definition: borderid.h:178
This struct identifies a Border by the coordinates of the starting and the end point.
Definition: borderid.h:31
double distance(const BorderID &other) const
returns sum of distance between this.m_first and other.m_first and distance between this....
Definition: borderid.h:51
Coordinate m_last
Definition: borderid.h:32
BorderID inverse() const
returns the inverse of this
Definition: borderid.h:97
double getLength()
Definition: borderid.h:66
BorderID(Coordinate first, Coordinate last)
Definition: borderid.h:34
bool isInArea(double x_min, double x_max, double y_min, double y_max) const
Check whether the starting point and the end point of the BorderID are in a certain area.
Definition: borderid.h:148
Coordinate m_first
Definition: borderid.h:32
BorderID getReverseDirectionID(const BorderID &b)
Get a BorderID with the reverse direction of a given BorderID.
Definition: borderid.h:160
bool operator==(const BorderID &other) const
Check equality of two BorderIDs.
Definition: borderid.h:90
std::string toString() const
Write information of the BorderID to a string.
Definition: borderid.h:131
BorderID()
Definition: borderid.h:33
void translate(double dx, double dy, double dz)
Translate a border.
Definition: borderid.h:42
bool operator<(const BorderID &other) const
Compare two BorderIDs.
Definition: borderid.h:108
void rotate(double angle, double x0=0.0, double y0=0.0)
Definition: borderid.h:78
double distance() const
returns distance between coordinates in id
Definition: borderid.h:59
BorderID getReverseDirectionID() const
Definition: borderid.h:165
a functor, which hashes a Coordinate object -> std::unordered_set<Coordinate,CoordinateHasher> amap(0...
Definition: coordinate.h:281
This struct represents 3-dimensional coordines.
Definition: coordinate.h:34
bool isInArea(double x_min, double x_max, double y_min, double y_max) const
Check whether a Coordinate is in a certain area.
Definition: coordinate.h:216
void rotate(double angle, double x0=0.0, double y0=0.0)
rotate around x0,y0
Definition: coordinate.h:100
void translate(double dx, double dy, double dz)
Translate a coordinate object.
Definition: coordinate.h:87
double m_Y
Definition: coordinate.h:35
double distance(const Coordinate &other) const
Calculate the distance between two Coordinates.
Definition: coordinate.h:133
double m_Z
Definition: coordinate.h:35
double m_X
Definition: coordinate.h:35
std::string toString() const
Write information of the Coordinate to a string.
Definition: coordinate.h:191