WRAPPER_API bool Transform(const CoordPoint &sourcePoint, CoordPoint &targetPoint) const
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.
void MathTransform_Transform(GEOCALCPBW_NAMESPACE::MathTransform & mt, GEOCALCPBW_NAMESPACE::CoordPoint & inPt, GEOCALCPBW_NAMESPACE::CoordPoint & outPt)
{
if(! mt.IsSolved())
{
AfxMessageBox("Cannot transform, MathTransform not solved");
}
if(! mt.Transform(inPt, outPt))
{
AfxMessageBox("Transform failed");
}
}