22 namespace localization {
31 Rect2D(T min_x, T min_y, T max_x, T max_y);
51 Eigen::Matrix<T, 4, 1, Eigen::DontAlign> _data;
59 : _data(min_x, min_y, max_x, max_y) {}
94 Eigen::Matrix<T, 2, 1> corner;
100 template <
typename T>
102 Eigen::Matrix<T, 2, 1> corner;
103 corner(0) = _data(2);
104 corner(1) = _data(3);
T GetMinY() const
Get the min y of the rectangle.
Definition: rect2d.h:78
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
T GetMaxY() const
Get the max y of the rectangle.
Definition: rect2d.h:88
Eigen::Matrix< T, 2, 1 > GetRightBottomCorner() const
Get the right bottom corner of the rectangle.
Definition: rect2d.h:101
Rect2D()
Definition: rect2d.h:55
T GetMaxX() const
Get the max x of the rectangle.
Definition: rect2d.h:83
T GetMinX() const
Get the min x of the rectangle.
Definition: rect2d.h:73
Rect2D< T > & operator=(const Rect2D< T > &ref)
Overloading the operator =.
Definition: rect2d.h:67
Eigen::Matrix< T, 2, 1 > GetLeftTopCorner() const
Get the left top corner of the rectangle.
Definition: rect2d.h:93