AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

virtual MgCoordinate* MgCoordinateSystemTransform::Transform ( double  x,
double  y,
double  z 
) [pure virtual]

Transforms the given X, Y and Z values whose frame of reference is the source coordinate system into a coordinate whose frame of reference is the target coordinate system.

Parameters:
x (double) The X ordinate to transform.
y (double) The Y ordinate to transform.
z (double) The Z ordinate to transform.
Returns:
Returns an MgCoordinate object which is the equivalent in the target coordinate system of the given X, Y, and Z ordinates.
Example (PHP) See the example code in MgCoordinateSystemTransform::Transform Method (MgCoordinate*) and make the appropriate substitutions.

Exceptions:
MgCoordinateSystemTransformFailedException 

Implements MgTransform.