public bool Transform(const CoordPoint &sourcePoint, CoordPoint &targetPoint) const
Description
The Transform method applies this MathTransform to a CoordPoint. The method takes two arguments, the first of which is the CoordPoint to be transformed, and the second of which is the CoordPoint that will hold the result. The method returns a boolean value indicating the success of the operation.
Example
void MathTransform_Transform(GeoCalc.MathTransform & mt, GeoCalc.CoordPoint & inPt, GeoCalc.CoordPoint & outPt)
{
if(! mt.IsSolved())
{
AfxMessageBox("Cannot transform, MathTransform not solved");
}
if(! mt.Transform(inPt, outPt))
{
AfxMessageBox("Transform failed");
}
}
Comments
0 comments
Please sign in to leave a comment.