MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
virtual double MgCoordinateSystem::GetAzimuth ( MgCoordinate coord1,
MgCoordinate coord2 
) [pure virtual]

Gets the angle with respect to North of a vector formed by two coordinates.

Parameters:
coord1(MgCoordinate) The first coordinate
coord2(MgCoordinate) The second coordinate
Returns:
The azimuth (Angle with respect to North) of the vector formed by coord1 and coord2
Remarks:
This method is specific to a geographic coordinate system. The angle is positive moving clockwise from North and negative moving counterclockwise from North. If the first coordinate is above and to the left of the second, or below and to the left, the movement is clockwise. If the first coordinate is above and to the right, or below and to the right, the movement is counterclockwise