geometry/RegulatoryElement.h
Go to the documentation of this file.
1 #pragma once
4 
5 namespace lanelet {
6 namespace geometry {
16 BoundingBox2d boundingBox2d(const RegulatoryElement& regElem);
17 
23 inline BoundingBox2d boundingBox2d(const RegulatoryElementConstPtr& regElem) { return boundingBox2d(*regElem); }
24 
35 inline BoundingBox3d boundingBox3d(const RegulatoryElementConstPtr& regElem) { return boundingBox3d(*regElem); }
36 
39 double distance2d(const RegulatoryElement& regElem, const BasicPoint2d& p);
40 
42 inline double distance2d(const RegulatoryElementConstPtr& regElem1, const BasicPoint2d& p) {
43  return distance2d(*regElem1, p);
44 }
45 } // namespace geometry
46 } // namespace lanelet
lanelet::geometry::boundingBox3d
IfAr< AreaT, BoundingBox3d > boundingBox3d(const AreaT &area)
calculates 3d bounding box
Definition: geometry/impl/Area.h:30
lanelet
Definition: Attribute.h:13
p
BasicPoint p
Definition: LineStringGeometry.cpp:196
lanelet::RegulatoryElement
A general rule or limitation for a lanelet (abstract base class)
Definition: primitives/RegulatoryElement.h:174
lanelet::BoundingBox2d
Axis-Aligned bounding box in 2d.
Definition: primitives/BoundingBox.h:23
lanelet::BoundingBox3d
Eigen::AlignedBox3d BoundingBox3d
Convenience type for an axis aligned bounding box in 3d.
Definition: primitives/BoundingBox.h:283
lanelet::BasicPoint2d
Eigen::Matrix< double, 2, 1, Eigen::DontAlign > BasicPoint2d
a simple 2d-point
Definition: primitives/Point.h:20
lanelet::RegulatoryElementConstPtr
std::shared_ptr< const RegulatoryElement > RegulatoryElementConstPtr
Definition: Forward.h:194
lanelet::geometry::boundingBox2d
IfAr< AreaT, BoundingBox2d > boundingBox2d(const AreaT &area)
calculates an up-right 2d bounding box
Definition: geometry/impl/Area.h:25
BoundingBox.h
RegulatoryElement.h
lanelet::geometry::distance2d
double distance2d(const RegulatoryElement &regElem, const BasicPoint2d &p)
Definition: RegulatoryElementGeometry.cpp:85


lanelet2_core
Author(s): Fabian Poggenhans
autogenerated on Thu Mar 6 2025 03:25:52