8 #include "../BasicDatatypes.hpp" 10 #include "../tools/errorhandler.hpp" 45 dieWithError(
"Vector::operator=: Vector size does not match!");
74 inline const double operator()(
const UINT16 rowNr,
const UINT16 columnNr)
const;
75 inline double& operator()(
const UINT16 rowNr,
const UINT16 columnNr);
104 Vector result(m_numOfRows);
106 for (row = 0; row < m_numOfRows; row++)
109 for (col=0; col < m_numOfColumns; col++)
166 Position3D(value_type yaw, value_type pitch, value_type roll,
167 value_type x, value_type y, value_type z);
179 Position3D(value_type yaw, value_type pitch, value_type roll,
186 bool transformToVehicle(
Point3D* pt);
200 value_type
getX()
const {
return m_point.getX(); }
202 value_type
getY()
const {
return m_point.getY(); }
204 value_type
getZ()
const {
return m_point.getZ(); }
216 void setX(value_type x) { m_point.setX(x); }
218 void setY(value_type y) { m_point.setY(y); }
220 void setZ(value_type z) { m_point.setZ(z); }
237 Position3D&
set(value_type yaw, value_type pitch, value_type roll,
238 value_type x, value_type y, value_type z);
241 void normalizeAngles();
261 #endif // POSITION3D_HPP std::string toString(const PositionWGS84::PositionWGS84SourceType &type)
value_type m_yawAngle
Yaw angle [rad].
This class defines a point in the three-dimensional plane.
Vector & operator=(const Vector &in)
void setPitchAngle(value_type angle)
Pitch angle [rad] of the sensor in the vehicle coordinate system.
value_type getX() const
x-coordinate [m] of the sensor in the vehicle coordinate system
A Position with orientation.
void setRollAngle(value_type angle)
Roll angle [rad] of the sensor in the vehicle coordinate system.
value_type m_rollAngle
Roll angle [rad].
value_type m_pitchAngle
Pitch angle [rad].
void setY(value_type y)
y-coordinate [m] of the sensor in the vehicle coordinate system
value_type getPitchAngle() const
Pitch angle [rad] of the sensor in the vehicle coordinate system.
value_type getYawAngle() const
Yaw angle [rad] of the sensor in the vehicle coordinate system.
const double operator()(const UINT16 rowNr, const UINT16 columnNr) const
void dieWithError(std::string errorMessage)
Vector(UINT16 numOfElements)
const double operator[](const UINT16 elementNr) const
value_type getRollAngle() const
Roll angle [rad] of the sensor in the vehicle coordinate system.
bool operator==(const Box2D &b1, const Box2D &b2)
void setX(value_type x)
x-coordinate [m] of the sensor in the vehicle coordinate system
void setYawAngle(value_type angle)
Yaw angle [rad] of the sensor in the vehicle coordinate system.
void setZ(value_type z)
z-coordinate [m] of the sensor in the vehicle coordinate system
const Point2D operator*(const Point2D &p, Point2D::value_type factor)
const Vector operator*(Vector &vector)
value_type getY() const
y-coordinate [m] of the sensor in the vehicle coordinate system
virtual const UINT32 getUsedMemory() const
value_type getZ() const
z-coordinate [m] of the sensor in the vehicle coordinate system