Algorithmic Solutions > LEDA > LEDA Guide > Geometry > Angles


Angles

There is no type angle in either the rational or the floating point kernel. There are, however, several functions related to angles. In particular, two vectors v1 and v2 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:

Data Types for 2D Geometry

Writing Kernel Independent Code


Geometry

Advanced Data types for 2-D geometry

Data Types for 3-D Geometry

Geometry Algorithms

GeoWin




Please send any suggestions, comments or questions to leda@algorithmic-solutions.com
© Copyright 2001-2003, Algorithmic Solutions Software GmbH