code: public Point2d toScreenCoordinates(double modelX, double modelY) {
          double[] dest = new double[2];
          transform.transform(new double[]{modelX, modelY}, 0, dest, 0, 1);
          return new Point2d(dest[0], dest[1]);
      }
docs: Convert a point in model space into a point in screen space.
  
  @param modelX the model x-coordinate
  @param modelY the model y-coordinate
  @return the equivalent point in screen space