Go to the documentation of this file.
10 #include "../BasicDatatypes.hpp"
221 const std::vector<Point2D>::const_iterator& end)
const;
253 const std::vector<Point2D>::const_iterator& begin,
254 const std::vector<Point2D>::const_iterator& end);
std::pair< value_type, value_type > getBoundingAngles() const
Returns boundary angles for this box.
Box2D()
Constructor for an all-zero Box2D.
const Point2D & getSize() const
Returns the size of this Box.
Box2D toBoundingBox() const
Returns a Box in parallel to the coordinate system that bounds this box.
A rotated 2-dimensional box in the plane.
void setRotation(value_type r)
Sets the rotation angle of this Box in [radians], counter clock wise.
void setCenter(value_type x, value_type y)
Sets the center point of this Box2D.
bool operator==(const Box2D &b1, const Box2D &b2)
void setXY(value_type x, value_type y)
Box2D movedBy(const Point2D ¢erMovement) const
Returns a Box that is copied from this one but with its center point moved.
bool containsPoint(const Point2D &point) const
Returns true if the given Point2D is inside this box or on its outline.
static Box2D orientatedBox(value_type orientation_rad, const Polygon2D &poly)
Returns an orientated bounding box for the given list of points.
const Point2D & getCenter() const
Returns the center point of this Box.
void verifyNumericRanges()
virtual const UINT32 getUsedMemory() const
void moveBy(const Point2D ¢erMovement)
Move the center point of this box by the given point values.
double value_type
The type of the stored x and y coordinates.
friend bool operator==(const Box2D &, const Box2D &)
friend bool operator!=(const Box2D &, const Box2D &)
void setSize(const Point2D &p)
Sets the size of this Box. Must be non-negative.
std::string toString() const
value_type getRotation() const
Point2D::value_type value_type
The type of the stored x, y coordinates, and the rotation.
Polygon2D toPolygon() const
Converts this Box2D to a closed polygon.
bool operator!=(const Box2D &b1, const Box2D &b2)
Point2D::value_type distanceFromOutline(const Point2D &point) const
Returns the distance from the outline of this Box2D to the given point.
void setCenter(const Point2D &p)
Sets the center point of this Box2D.
libsick_ldmrs
Author(s): SICK AG
, Martin Günther , Jochen Sprickerhof
autogenerated on Wed Oct 26 2022 02:11:57