static Point2D getLocalCoords(LatLon point, LatLon center) {
double dx = point.lon() - center.lon();
double dy = point.lat() - center.lat();
return new Point2D(dx * Math.cos(Math.toRadians(center.lat())) * 111320.0,
dy * 111320.0);
}
just that. works pretty good.