maliput_sparse
LineString< CoordinateT, DistanceFunction >::Segment Struct Reference

Detailed Description

template<typename CoordinateT, typename DistanceFunction = details::EuclideanDistance<CoordinateT>>
struct maliput_sparse::geometry::LineString< CoordinateT, DistanceFunction >::Segment

A segment of a LineString.

A segment is defined by a:

  • start index: index of the first coordinate of the segment.
  • end index: index of the last coordinate of the segment, it is expected to be start index + 1 as LineString's constructor builds the segments from consecutive coordinates.

#include <include/maliput_sparse/geometry/line_string.h>

Classes

struct  Interval
 Defines an interval in the \( p \) value of the parametrized LineString. More...
 

Public Attributes

std::size_t idx_start
 Start index of the segment. More...
 
std::size_t idx_end
 End index of the segment. More...
 
Segment::Interval p_interval
 Interval of the segment. More...
 

Member Data Documentation

◆ idx_end

std::size_t idx_end

End index of the segment.

◆ idx_start

std::size_t idx_start

Start index of the segment.

◆ p_interval

Segment::Interval p_interval

Interval of the segment.


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