CGAL 5.6.3 - dD Geometry Kernel

Loading...
Searching...
No Matches
List of all members
Kernel_d::Squared_distance_d Concept Reference
dD Geometry Kernel Reference » Kernel Concept

## Definition

## Operations
A model of this concept must provide:
Kernel_d::FT | operator() (const Kernel_d::Point_d &p, const Kernel_d::Point_d &q)
| computes the square of the Euclidean distance between the two points \( p\) and \( q\).

## Member Function Documentation

## ◆ operator()()

Kernel_d::FT Kernel_d::Squared_distance_d::operator() | ( | const Kernel_d::Point_d & | p,
|  | const Kernel_d::Point_d & | q
| ) |  |

computes the square of the Euclidean distance between the two points \( p\) and \( q\).

Precondition
  The dimensions of \( p\) and \( q\) are the same.