src/main/java/de/javagl/geom/Points.java
/**
     * Scales the given point with the given factor 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 point
     * @param factor The scaling factor
     * @param result The result
     * @return The result
     */
Scales the given point with the given factor and stores the
result in the given result point. If the given result point
is null, a new point will be created and returned.

@param p0 The point
@param factor The scaling factor
@param result The result
@return The result
Scales the given point with the given factor and stores the result in the given result point . If the given result point is null a new point will be created and returned . @param p0 The point @param factor The scaling factor @param result The result @return The result
public static Point2D scale(Point2D p0, double factor, Point2D result)
    {
        if (result == null)
        {
            result = new Point2D.Double();
        }
        result.setLocation(p0.getX()*factor, p0.getY()*factor);
        return result;
    }
public static Point2D scale ( Point2D p0 , double factor , Point2D result ) { if ( result == null ) { result = new Point2D . Double ( ) ; } result . setLocation ( p0 . getX ( ) * factor , p0 . getY ( ) * factor ) ; return result ; }
Scales the given point with the given factor and stores the
 result in the given result point.
Scales the given point with the given factor and stores the result in the given result point .