10 #include "../tools/errorhandler.hpp" 28 memset (
this, 0,
sizeof(*
this));
77 const double x = other.
m_x -
m_x;
78 const double y = other.
m_y -
m_y;
79 const double z = other.
m_z -
m_z;
80 return double(::
hypot(x, y, z));
90 const double x = other.
m_x -
m_x;
91 const double y = other.
m_y -
m_y;
92 return double(::
hypot(x, y));
245 std::ostringstream ostr;
253 os <<
"[(" << point.
getX() <<
", " << point.
getY() <<
", " << point.
getZ() <<
")" 254 <<
" channel " << int(point.
getLayer())
void setXYZ(double x, double y, double z)
Sets the coordinates of this point to the given values.
This class defines a point in the three-dimensional plane.
friend bool operator==(const ScanPoint &, const ScanPoint &)
Equality predicate.
double getY() const
Returns the y-coordinate of this point.
std::string toString() const
void setPolar(double dist, double hAngle, double vAngle)
void setEchoWidth(double echoWidth)
Set the echo pulse width, typically in [m].
void addPolarOffset(double distOffset, double hAngleOffset, double vAngleOffset)
static double getDistanceBetweenScanpoints(const ScanPoint &pt1, const ScanPoint &pt2)
void setPoint3D(const Point3D &pt)
void setCartesian(double x, double y, double z)
Point2D toPoint2D() const
Returns the x and y coordinates as a Point2D structure.
double getZ() const
Returns the z-coordinate of this point.
void setXY(value_type x, value_type y)
void addCartesianOffset(double xOffset, double yOffset, double zOffset)
Point3D toPoint3D() const
Returns the x,y,z coordinates as a Point3D structure.
UINT8 getSourceId() const
double getX() const
Returns the x-coordinate of this point.
void updateCartesian()
Compute Cartesian coordinates from the current polar coordinates.
void updatePolar()
Compute polar coordinates from the current Cartesian coordinates.
double getDist2D(const ScanPoint &other) const
Returns the two-dimensional distance between this and the given other scanpoint, in [m]...
bool operator!=(const Box2D &b1, const Box2D &b2)
std::ostream & operator<<(std::ostream &os, const EvalCaseResult &result)