maliput
|
Abstract API for bounding description.
Coordinate | Coordinate in a given coordinate system. |
#include <include/maliput/math/bounding_region.h>
Public Member Functions | |
virtual | ~BoundingRegion ()=default |
const Coordinate & | position () const |
Obtains the bounding region's position in the Inertial-frame. More... | |
bool | Contains (const Coordinate &position) const |
Determines whether a position in the Inertial-frame is contained in this bounding region. More... | |
OverlappingType | Overlaps (const BoundingRegion< Coordinate > &other) const |
Determines the overlapping type with other BoundingRegion instance. More... | |
Protected Member Functions | |
BoundingRegion ()=default | |
|
virtualdefault |
|
protecteddefault |
bool Contains | ( | const Coordinate & | position | ) | const |
Determines whether a position
in the Inertial-frame is contained in this bounding region.
position | Inertial-frame's coordinate. |
position
is contained in this bounding region. OverlappingType Overlaps | ( | const BoundingRegion< Coordinate > & | other | ) | const |
Determines the overlapping type with other
BoundingRegion instance.
other
.other
intersects with this region.other
is contained within this region. other | Another BoundingRegion. |
const Coordinate& position | ( | ) | const |
Obtains the bounding region's position in the Inertial-frame.
The position is expected to match the centroid of the bounding region.