Apollo 10.0
自动驾驶开放平台
apollo::hdmap::ObjectWithAABox< Object, GeoObject > 模板类 参考

#include <hdmap_common.h>

apollo::hdmap::ObjectWithAABox< Object, GeoObject > 的协作图:

Public 成员函数

 ObjectWithAABox (const apollo::common::math::AABox2d &aabox, const Object *object, const GeoObject *geo_object, const int id)
 
 ~ObjectWithAABox ()
 
const apollo::common::math::AABox2daabox () const
 
double DistanceTo (const apollo::common::math::Vec2d &point) const
 
double DistanceSquareTo (const apollo::common::math::Vec2d &point) const
 
const Object * object () const
 
const GeoObject * geo_object () const
 
int id () const
 

详细描述

template<class Object, class GeoObject>
class apollo::hdmap::ObjectWithAABox< Object, GeoObject >

在文件 hdmap_common.h54 行定义.

构造及析构函数说明

◆ ObjectWithAABox()

template<class Object , class GeoObject >
apollo::hdmap::ObjectWithAABox< Object, GeoObject >::ObjectWithAABox ( const apollo::common::math::AABox2d aabox,
const Object *  object,
const GeoObject *  geo_object,
const int  id 
)
inline

在文件 hdmap_common.h56 行定义.

59 : aabox_(aabox), object_(object), geo_object_(geo_object), id_(id) {}
const apollo::common::math::AABox2d & aabox() const
const GeoObject * geo_object() const

◆ ~ObjectWithAABox()

template<class Object , class GeoObject >
apollo::hdmap::ObjectWithAABox< Object, GeoObject >::~ObjectWithAABox ( )
inline

在文件 hdmap_common.h60 行定义.

60{}

成员函数说明

◆ aabox()

template<class Object , class GeoObject >
const apollo::common::math::AABox2d & apollo::hdmap::ObjectWithAABox< Object, GeoObject >::aabox ( ) const
inline

在文件 hdmap_common.h61 行定义.

61{ return aabox_; }

◆ DistanceSquareTo()

template<class Object , class GeoObject >
double apollo::hdmap::ObjectWithAABox< Object, GeoObject >::DistanceSquareTo ( const apollo::common::math::Vec2d point) const
inline

在文件 hdmap_common.h65 行定义.

65 {
66 return geo_object_->DistanceSquareTo(point);
67 }

◆ DistanceTo()

template<class Object , class GeoObject >
double apollo::hdmap::ObjectWithAABox< Object, GeoObject >::DistanceTo ( const apollo::common::math::Vec2d point) const
inline

在文件 hdmap_common.h62 行定义.

62 {
63 return geo_object_->DistanceTo(point);
64 }

◆ geo_object()

template<class Object , class GeoObject >
const GeoObject * apollo::hdmap::ObjectWithAABox< Object, GeoObject >::geo_object ( ) const
inline

在文件 hdmap_common.h69 行定义.

69{ return geo_object_; }

◆ id()

template<class Object , class GeoObject >
int apollo::hdmap::ObjectWithAABox< Object, GeoObject >::id ( ) const
inline

在文件 hdmap_common.h70 行定义.

70{ return id_; }

◆ object()

template<class Object , class GeoObject >
const Object * apollo::hdmap::ObjectWithAABox< Object, GeoObject >::object ( ) const
inline

在文件 hdmap_common.h68 行定义.

68{ return object_; }

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