* @see MathTransform2D#transform(Point2D,Point2D)
*/
public Point2D transform(final Point2D ptSrc, final Point2D ptDst) throws TransformException {
int dim;
if ((dim = getSourceDimensions()) != 2) {
throw new MismatchedDimensionException(constructMessage("ptSrc", 2, dim));
}
if ((dim = getTargetDimensions()) != 2) {
throw new MismatchedDimensionException(constructMessage("ptDst", 2, dim));
}
final double[] ord = new double[] {ptSrc.getX(), ptSrc.getY()};
this.transform(ord, 0, ord, 0, 1);
if (ptDst != null) {
ptDst.setLocation(ord[0], ord[1]);