SquaredDistance< Coordinate, Dimension > Struct Template Reference

Detailed Description

template<typename Coordinate, std::size_t Dimension>
struct maliput::math::details::SquaredDistance< Coordinate, Dimension >

Calculates the squared distance between two points.

Template Parameters
CoordinateThe type of the coordinates.
DimensionThe dimension of the points.

#include <include/maliput/math/kd_tree.h>

Public Member Functions

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

Member Function Documentation

◆ operator()()

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

Obtains squared distance between two coordinates.

lhsFirst point.
rhsSecond point.
The squared distance between the two coordinates.

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