maliput_sparse
ClosestPointResult< CoordinateT > Struct Template Reference

Detailed Description

template<typename CoordinateT>
struct maliput_sparse::geometry::utility::ClosestPointResult< CoordinateT >

Holds the result of GetClosestPoint method.

Template Parameters
CoordinateTThe coordinate type.

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

Public Attributes

double p
 P coordinate in the line string matching the closest point. More...
 
CoordinateT point
 Closest point. More...
 
double distance
 Distance between the closest point and the given point. More...
 
LineString< CoordinateT >::Segment segment
 Linestring's segment that contains the closest point. More...
 

Member Data Documentation

◆ distance

double distance

Distance between the closest point and the given point.

◆ p

double p

P coordinate in the line string matching the closest point.

◆ point

CoordinateT point

Closest point.

◆ segment

LineString<CoordinateT>::Segment segment

Linestring's segment that contains the closest point.


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