Algorithmic Solutions > LEDA > LEDA Guide > Geometry > Angles
AnglesThere is no type angle in either the rational or the floating point kernel. There are, however, several functions related to angles. In particular, two vectorsv_{1}
and v_{2} can be compared by the angle which
they form with the positive x-axis. The corresponding function is
int compare_by_angle(VECTOR v1, VECTOR v2); We use the notation VECTOR to indicate that the algorithm works both for vectors and rat_vectors . (More information on
Writing Kernel Independent Code.) |
See also:Writing Kernel Independent Code |