maliput_sparse
EuclideanDistance< CoordinateT > Struct Template Reference

Detailed Description

template<typename CoordinateT>
struct maliput_sparse::geometry::details::EuclideanDistance< CoordinateT >

Calculates the Euclidean distance between two coordinates.

Template Parameters
CoordinateTThe type of the coordinates.

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

Public Member Functions

double operator() (const CoordinateT &lhs, const CoordinateT &rhs) const
 Obtains Euclidean distance between two coordinates. More...
 

Member Function Documentation

◆ operator()()

double operator() ( const CoordinateT &  lhs,
const CoordinateT &  rhs 
) const

Obtains Euclidean distance between two coordinates.

Parameters
lhsFirst point.
rhsSecond point.
Returns
The Euqclidean distance between the two coordinates.
Exceptions
maliput::common::assertion_errorWhen coordinate sizes are different.

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