MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
virtual MgCoordinate* MgCoordinateSystem::GetCoordinate ( MgCoordinate coord,
double  azimuth,
double  distance 
) [pure virtual]

Computes a coordinate a given distance along a vector that is defined by a starting coordinate and an azimuth (Angle with respect to North).

Parameters:
coord(MgCoordinate) An MgCoordinate object in coordinate system units that represents the start of the vector.
azimuth(double) An azimuth (Angle with respect to the North) that defines the direction of the vector.
distance(double) The distance along the vector to the desired coordinate in meters.
Returns:
An MgCoordinate that lies the given distance along the vector.
Remarks:
This method is specific to a geographic coordinate system. The values contained in the given and returned coordinates are in units native to the coordinate system as specified in the <name> parameter in the UNIT[] clause of the coordinate system WKT. The azimuth is always in decimal degrees, and the distance is always in meters