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 eventually the definition of what closer means.
|
|
| |
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. |