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

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

Parameters:
xStart(double) The x value in coordinate system units of the starting coordinate.
yStart(double) The y value in coordinate system units of the starting coordinate.
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