#include <segment.H>
Public Types | |
enum | side_t { ON_PATH, LEFT_OF_PATH, RIGHT_OF_PATH } |
Public Member Functions | |
segment_t () | |
segment_t (lane_point_t start_, lane_point_t end_) | |
~segment_t () | |
segment_t | reverse () |
side_t | point_side (lane_point_t pt_) |
lane_point_t | point_along_segment (float dis_) |
segment_t | segment_on_the_right (float perp_dis_) |
segment_t | segment_on_the_left (float perp_dis_) |
lane_point_t | point_to_the_right (float perp_dis_, float horiz_dis_) |
lane_point_t | point_to_the_left (float perp_dis_, float horiz_dis_) |
double | segment_angle (const segment_t &another_seg_) |
lane_point_t | start_point () |
lane_point_t | end_point () |
double | slope () |
Private Attributes | |
lane_point_t | m_start |
lane_point_t | m_end |
double | m_segment_heading |
cajun::segment_t::segment_t | ( | ) | [inline] |
Referenced by reverse(), segment_on_the_left(), and segment_on_the_right().
cajun::segment_t::segment_t | ( | lane_point_t | start_, | |
lane_point_t | end_ | |||
) | [inline] |
References m_end, m_segment_heading, m_start, _point_t::x, and _point_t::y.
cajun::segment_t::~segment_t | ( | ) | [inline] |
lane_point_t cajun::segment_t::end_point | ( | ) | [inline] |
References m_end.
Referenced by main(), and walk_dtm().
lane_point_t cajun::segment_t::point_along_segment | ( | float | dis_ | ) | [inline] |
References m_segment_heading, m_start, _point_t::x, and _point_t::y.
Referenced by main().
side_t cajun::segment_t::point_side | ( | lane_point_t | pt_ | ) | [inline] |
References LEFT_OF_PATH, m_end, m_start, ON_PATH, RIGHT_OF_PATH, _point_t::x, cajun::xtrack_distance(), and _point_t::y.
Referenced by main(), and partition_neighbors_on_sides().
lane_point_t cajun::segment_t::point_to_the_left | ( | float | perp_dis_, | |
float | horiz_dis_ | |||
) | [inline] |
References segment_on_the_left().
lane_point_t cajun::segment_t::point_to_the_right | ( | float | perp_dis_, | |
float | horiz_dis_ | |||
) | [inline] |
References segment_on_the_right().
Referenced by expand_dtm_path().
segment_t cajun::segment_t::reverse | ( | ) | [inline] |
References m_end, m_start, and segment_t().
Referenced by expand_dtm_path(), and main().
double cajun::segment_t::segment_angle | ( | const segment_t & | another_seg_ | ) | [inline] |
References m_segment_heading.
Referenced by expand_dtm_path(), and main().
segment_t cajun::segment_t::segment_on_the_left | ( | float | perp_dis_ | ) | [inline] |
References m_end, m_segment_heading, m_start, segment_t(), _point_t::x, and _point_t::y.
Referenced by main(), and point_to_the_left().
segment_t cajun::segment_t::segment_on_the_right | ( | float | perp_dis_ | ) | [inline] |
References m_end, m_segment_heading, m_start, segment_t(), _point_t::x, and _point_t::y.
Referenced by main(), and point_to_the_right().
double cajun::segment_t::slope | ( | ) | [inline] |
References m_end, m_start, _point_t::x, and _point_t::y.
Referenced by walk_dtm().
lane_point_t cajun::segment_t::start_point | ( | ) | [inline] |
References m_start.
Referenced by main(), and walk_dtm().
lane_point_t cajun::segment_t::m_end [private] |
Referenced by end_point(), point_side(), reverse(), segment_on_the_left(), segment_on_the_right(), segment_t(), and slope().
double cajun::segment_t::m_segment_heading [private] |
Referenced by point_along_segment(), segment_angle(), segment_on_the_left(), segment_on_the_right(), and segment_t().
lane_point_t cajun::segment_t::m_start [private] |
Referenced by point_along_segment(), point_side(), reverse(), segment_on_the_left(), segment_on_the_right(), segment_t(), slope(), and start_point().