#include <CGAL/Direction_2.h>
|
| |
|
introduces the direction d of vector .
| |
|
| |
|
introduces a direction d passing through the origin
and the point with Cartesian coordinates .
| |
|
|
|
returns values, such that d== Direction_2<R>(delta(0),delta(1)). Precondition: : . |
|
|
| returns delta(0). |
|
|
| returns delta(1). |
There is a total order on directions. We compare the angles between the positive -axis and the directions in counterclockwise order.
|
|
| Test for equality. |
|
|
| Test for inequality. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Furthermore, we have
|
|
| |
| returns true, iff, while rotating counterclockwise starting at d1, d is reached strictly before d2 is reached. | ||
|
|
| The direction opposite to d. |
|
|
| returns a vector that has the same direction as d. |
|
|
| |
| returns the direction obtained by applying on d. | ||