Apollo 10.0
自动驾驶开放平台
apollo::perception::camera::LineSegment2D< T > 模板结构体 参考

#include <twod_threed_util.h>

apollo::perception::camera::LineSegment2D< T > 的协作图:

Public 成员函数

 LineSegment2D (const T &x_start, const T &y_start, const T &x_end, const T &y_end)
 
 LineSegment2D (const LineSegment2D &ls)
 
void operator= (const LineSegment2D &ls)
 

Public 属性

pt_start [2] = {0}
 
pt_end [2] = {0}
 

详细描述

template<typename T>
struct apollo::perception::camera::LineSegment2D< T >

在文件 twod_threed_util.h33 行定义.

构造及析构函数说明

◆ LineSegment2D() [1/2]

template<typename T >
apollo::perception::camera::LineSegment2D< T >::LineSegment2D ( const T &  x_start,
const T &  y_start,
const T &  x_end,
const T &  y_end 
)
inline

在文件 twod_threed_util.h37 行定义.

38 {
39 pt_start[0] = x_start;
40 pt_start[1] = y_start;
41 pt_end[0] = x_end;
42 pt_end[1] = y_end;
43 }

◆ LineSegment2D() [2/2]

template<typename T >
apollo::perception::camera::LineSegment2D< T >::LineSegment2D ( const LineSegment2D< T > &  ls)
inline

在文件 twod_threed_util.h44 行定义.

44 {
45 this->pt_start[0] = ls.pt_start[0];
46 this->pt_start[1] = ls.pt_start[1];
47 this->pt_end[0] = ls.pt_end[0];
48 this->pt_end[1] = ls.pt_end[1];
49 }

成员函数说明

◆ operator=()

template<typename T >
void apollo::perception::camera::LineSegment2D< T >::operator= ( const LineSegment2D< T > &  ls)
inline

在文件 twod_threed_util.h50 行定义.

50 {
51 this->pt_start[0] = ls.pt_start[0];
52 this->pt_start[1] = ls.pt_start[1];
53 this->pt_end[0] = ls.pt_end[0];
54 this->pt_end[1] = ls.pt_end[1];
55 }

类成员变量说明

◆ pt_end

template<typename T >
T apollo::perception::camera::LineSegment2D< T >::pt_end[2] = {0}

在文件 twod_threed_util.h35 行定义.

35{0}; // right

◆ pt_start

template<typename T >
T apollo::perception::camera::LineSegment2D< T >::pt_start[2] = {0}

在文件 twod_threed_util.h34 行定义.

34{0}; // left

该结构体的文档由以下文件生成: