class ShapeHelper {

    private static Point2D.Double getPointAt(double x1, double y1, double x2, double y2, double distance) {
        double length = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
        return new Point2D.Double(x1 + distance * (x2 - x1) / length, y1 + distance * (y2 - y1) / length);
    }

    private  ShapeHelper();

}