Apollo  6.0
Open source self driving car software
Public Member Functions | Public Attributes | List of all members
apollo::perception::base::BBox2D< T > Struct Template Reference

#include <box.h>

Collaboration diagram for apollo::perception::base::BBox2D< T >:
Collaboration graph

Public Member Functions

 BBox2D ()
 
 BBox2D (const T &xmin_in, const T &ymin_in, const T &xmax_in, const T &ymax_in)
 
 BBox2D (const Rect< T > &rect)
 
BBox2D< T > & operator= (const Rect< T > &rect)
 
Point2D< T > Center () const
 
Area () const
 

Public Attributes

xmin = 0
 
ymin = 0
 
xmax = 0
 
ymax = 0
 

Constructor & Destructor Documentation

◆ BBox2D() [1/3]

template<typename T>
apollo::perception::base::BBox2D< T >::BBox2D ( )
inline

◆ BBox2D() [2/3]

template<typename T>
apollo::perception::base::BBox2D< T >::BBox2D ( const T &  xmin_in,
const T &  ymin_in,
const T &  xmax_in,
const T &  ymax_in 
)
inline

◆ BBox2D() [3/3]

template<typename T>
apollo::perception::base::BBox2D< T >::BBox2D ( const Rect< T > &  rect)
inlineexplicit

Member Function Documentation

◆ Area()

template<typename T>
T apollo::perception::base::BBox2D< T >::Area ( ) const
inline

◆ Center()

template<typename T>
Point2D<T> apollo::perception::base::BBox2D< T >::Center ( ) const
inline

◆ operator=()

template<typename T>
BBox2D<T>& apollo::perception::base::BBox2D< T >::operator= ( const Rect< T > &  rect)
inline

Member Data Documentation

◆ xmax

template<typename T>
T apollo::perception::base::BBox2D< T >::xmax = 0

◆ xmin

template<typename T>
T apollo::perception::base::BBox2D< T >::xmin = 0

◆ ymax

template<typename T>
T apollo::perception::base::BBox2D< T >::ymax = 0

◆ ymin

template<typename T>
T apollo::perception::base::BBox2D< T >::ymin = 0

The documentation for this struct was generated from the following file: