Apollo 10.0
自动驾驶开放平台
apollo::localization::msf::Rect2D< T > 模板类 参考

#include <rect2d.h>

apollo::localization::msf::Rect2D< T > 的协作图:

Public 成员函数

 Rect2D ()
 @brieft The constructor.
 
 Rect2D (T min_x, T min_y, T max_x, T max_y)
 The constructor.
 
 Rect2D (const Rect2D< T > &ref)
 Copy constructor.
 
Rect2D< T > & operator= (const Rect2D< T > &ref)
 Overloading the operator =.
 
GetMinX () const
 Get the min x of the rectangle.
 
GetMinY () const
 Get the min y of the rectangle.
 
GetMaxX () const
 Get the max x of the rectangle.
 
GetMaxY () const
 Get the max y of the rectangle.
 
Eigen::Matrix< T, 2, 1 > GetLeftTopCorner () const
 Get the left top corner of the rectangle.
 
Eigen::Matrix< T, 2, 1 > GetRightBottomCorner () const
 Get the right bottom corner of the rectangle.
 

详细描述

template<typename T>
class apollo::localization::msf::Rect2D< T >

在文件 rect2d.h26 行定义.

构造及析构函数说明

◆ Rect2D() [1/3]

template<typename T >
apollo::localization::msf::Rect2D< T >::Rect2D ( )

@brieft The constructor.

在文件 rect2d.h55 行定义.

55{}

◆ Rect2D() [2/3]

template<typename T >
apollo::localization::msf::Rect2D< T >::Rect2D ( min_x,
min_y,
max_x,
max_y 
)

The constructor.

在文件 rect2d.h58 行定义.

59 : _data(min_x, min_y, max_x, max_y) {}

◆ Rect2D() [3/3]

template<typename T >
apollo::localization::msf::Rect2D< T >::Rect2D ( const Rect2D< T > &  ref)

Copy constructor.

在文件 rect2d.h62 行定义.

62 {
63 _data = ref._data;
64}

成员函数说明

◆ GetLeftTopCorner()

template<typename T >
Eigen::Matrix< T, 2, 1 > apollo::localization::msf::Rect2D< T >::GetLeftTopCorner ( ) const

Get the left top corner of the rectangle.

在文件 rect2d.h93 行定义.

93 {
94 Eigen::Matrix<T, 2, 1> corner;
95 corner(0) = _data(0);
96 corner(1) = _data(1);
97 return corner;
98}

◆ GetMaxX()

template<typename T >
T apollo::localization::msf::Rect2D< T >::GetMaxX ( ) const

Get the max x of the rectangle.

在文件 rect2d.h83 行定义.

83 {
84 return _data(2);
85}

◆ GetMaxY()

template<typename T >
T apollo::localization::msf::Rect2D< T >::GetMaxY ( ) const

Get the max y of the rectangle.

在文件 rect2d.h88 行定义.

88 {
89 return _data(3);
90}

◆ GetMinX()

template<typename T >
T apollo::localization::msf::Rect2D< T >::GetMinX ( ) const

Get the min x of the rectangle.

在文件 rect2d.h73 行定义.

73 {
74 return _data(0);
75}

◆ GetMinY()

template<typename T >
T apollo::localization::msf::Rect2D< T >::GetMinY ( ) const

Get the min y of the rectangle.

在文件 rect2d.h78 行定义.

78 {
79 return _data(1);
80}

◆ GetRightBottomCorner()

template<typename T >
Eigen::Matrix< T, 2, 1 > apollo::localization::msf::Rect2D< T >::GetRightBottomCorner ( ) const

Get the right bottom corner of the rectangle.

在文件 rect2d.h101 行定义.

101 {
102 Eigen::Matrix<T, 2, 1> corner;
103 corner(0) = _data(2);
104 corner(1) = _data(3);
105 return corner;
106}

◆ operator=()

template<typename T >
Rect2D< T > & apollo::localization::msf::Rect2D< T >::operator= ( const Rect2D< T > &  ref)

Overloading the operator =.

在文件 rect2d.h67 行定义.

67 {
68 _data = ref._data;
69 return *this;
70}

该类的文档由以下文件生成: