A distance class is a class designed to store three points p0, p1 and p2 and to decide which of p1 and p2 is closer to p0. The class is templated by a geometric traits class Gt which is required to provide the Point type and provide a compare() member function defining what closer means.
|
| the point. |
The following constructor creates a distance object. Missing points are not initialized.
|
|
| |
Replaces point . Precondition: . | ||
|
| |
Returns point . Precondition: . | ||
|
|
Compares the distance between p0 and p1
with the distance between p0 and and p2. Precondition: p1 and p2 are initialized. |