template<typename CoordinateT>
struct maliput_sparse::geometry::details::EuclideanDistance< CoordinateT >
Calculates the Euclidean distance between two coordinates.
- Template Parameters
-
CoordinateT | The type of the coordinates. |
#include <include/maliput_sparse/geometry/line_string.h>
|
double | operator() (const CoordinateT &lhs, const CoordinateT &rhs) const |
| Obtains Euclidean distance between two coordinates. More...
|
|
◆ operator()()
double operator() |
( |
const CoordinateT & |
lhs, |
|
|
const CoordinateT & |
rhs |
|
) |
| const |
Obtains Euclidean distance between two coordinates.
- Parameters
-
lhs | First point. |
rhs | Second point. |
- Returns
- The Euqclidean distance between the two coordinates.
- Exceptions
-
maliput::common::assertion_error | When coordinate sizes are different. |
The documentation for this struct was generated from the following file: