src/main/java/de/javagl/geom/Points.java
/**
     * Interpolates linearly between the given points, and stores the
     * result in the given result point. If the given result point 
     * is <code>null</code>, a new point will be created and returned.
     * 
     * @param p0 The first point
     * @param p1 The second point
     * @param alpha The position between the points (usually between 0 and 1)
     * @param result The result
     * @return The result
     */
Interpolates linearly between the given points, and stores the
result in the given result point. If the given result point
is null, a new point will be created and returned.


Interpolates linearly between the given points and stores the result in the given result point . If the given result point is null a new point will be created and returned .
public static Point2D interpolate(
        Point2D p0, Point2D p1, double alpha, Point2D result)
    {
        return interpolate(p0.getX(), p0.getY(), p1.getX(), p1.getY(), 
            alpha, result);
    }
public static Point2D interpolate ( Point2D p0 , Point2D p1 , double alpha , Point2D result ) { return interpolate ( p0 . getX ( ) , p0 . getY ( ) , p1 . getX ( ) , p1 . getY ( ) , alpha , result ) ; }
Interpolates linearly between the given points, and stores the
 result in the given result point.
Interpolates linearly between the given points and stores the result in the given result point .