VecmathUtil { static Point2D toAwtPoint(Point2d point) { return new Point2D.Double(point.x, point.y); } private  VecmathUtil();   }
@Test public void testToAwtPoint() throws Exception { Point2D p = VecmathUtil.toAwtPoint(new Point2d(4, 2)); assertThat(p.getX(), closeTo(4d, 0.01)); assertThat(p.getY(), closeTo(2d, 0.01)); }