Go to the documentation of this file.
14 #include "../BasicDatatypes.hpp"
15 #include "../tools/MathToolbox.hpp"
63 double getX()
const {
return m_x; }
64 double getY()
const {
return m_y; }
65 double getZ()
const {
return m_z; }
81 void setX(
double x) {
m_x = x; }
82 void setY(
double y) {
m_y = y; }
83 void setZ(
double z) {
m_z = z; }
84 void setXYZ(
double x,
double y,
double z) {
m_x = x;
m_y = y;
m_z = z; }
109 const Point3D& VectorStartpoint,
110 const Point3D& VectorDirection);
122 std::istream&
read (std::istream& is);
124 std::ostream&
write (std::ostream& os)
const;
143 std::ostream&
operator<<(std::ostream& os,
const Point3D& point);
static Point3D calcIntersectionPointOfVectorWithPlane(const Point3D &PlaneStartpoint, const Point3D &PlaneNormal, const Point3D &VectorStartpoint, const Point3D &VectorDirection)
static double getDistanceBetweenPoints(const Point3D &pt1, const Point3D &pt2)
Returns the distance between the two point coordinates.
double getAngleAroundX() const
Returns the rotation angle around x (in the z-y-plane)
const friend Point3D operator+(const Point3D &, const Point3D &)
Point2D toPoint2D() const
Returns the x/y components of this class, converted into a Point2D object.
double getAngleAroundY() const
Returns the rotation angle around y (in the z-x-plane)
void rotateAroundZ(double dYawAngle)
Rotate the point around the Z-axis ("Yaw angle")
const Point2D operator*(const Point2D &p, Point2D::value_type factor)
static std::streamsize getSerializedSize()
bool isZero() const
Check against (near-)zero.
bool operator==(const Box2D &b1, const Box2D &b2)
Point3D(double x, double y, double z)
const friend Point3D operator-(const Point3D &, const Point3D &)
friend bool operator==(const Point3D &, const Point3D &)
std::istream & read(std::istream &is)
Reads a Point3D from an input stream.
friend bool operator!=(const Point3D &, const Point3D &)
This class defines a point in the three-dimensional plane.
std::ostream & operator<<(std::ostream &os, const EvalCaseResult &result)
Point3D & operator-=(const Point3D &point)
Subtracts the given point to this point and returns a reference to this point.
void normalize()
Normalizes this vector (point) to length 1.0.
virtual const UINT32 getUsedMemory() const
const Point2D operator+(const Point2D &p1, const Point2D &p2)
static Point3D vectorProduct(const Point3D &v1, const Point3D &v2)
Returns the vector product ("Kreuzprodukt") of the two vectors.
Point3D & operator+=(const Point3D &point)
Adds the given point to this point and returns a reference to this point.
Point3D & operator/=(double divisor)
const Point2D operator/(const Point2D &p, Point2D::value_type divisor)
const Point2D operator-(const Point2D &p1, const Point2D &p2)
std::ostream & write(std::ostream &os) const
void rotateAroundX(double rollAngle)
Rotate the point around the X-axis ("Roll angle")
double floatingpoint_type
The type of the stored x and y coordinates.
friend double operator*(const Point3D &, const Point3D &)
std::string toString() const
Text output for debugging.
double getAngleAroundZ() const
Returns the rotation angle around z (in the x-y-plane)
double dist(const Point3D &point) const
Calculates the distance to the given point.
double distFromOrigin() const
Dist from the point (0,0,0) to this point.
void rotateAroundY(double pitchAngle)
Rotate the point around the Y-axis ("Pitch angle")
double length() const
Length of the vector (identical to distFromOrigin())
bool operator!=(const Box2D &b1, const Box2D &b2)
const friend Point3D operator/(const Point3D &, double)
libsick_ldmrs
Author(s): SICK AG
, Martin Günther , Jochen Sprickerhof
autogenerated on Wed Oct 26 2022 02:11:57