template<typename Coordinate, std::size_t Dimension>
struct maliput::math::details::SquaredDistance< Coordinate, Dimension >
Calculates the squared distance between two points.
- Template Parameters
-
Coordinate | The type of the coordinates. |
Dimension | The dimension of the points. |
#include <include/maliput/math/kd_tree.h>
|
double | operator() (const Coordinate &lhs, const Coordinate &rhs) const |
| Obtains squared distance between two coordinates. More...
|
|
◆ operator()()
double operator() |
( |
const Coordinate & |
lhs, |
|
|
const Coordinate & |
rhs |
|
) |
| const |
Obtains squared distance between two coordinates.
- Parameters
-
lhs | First point. |
rhs | Second point. |
- Returns
- The squared distance between the two coordinates.
The documentation for this struct was generated from the following file: