src/main/java/de/javagl/geom/Lines.java
/**
     * Scale the given line to have the given length about its starting
     * point, and store the result in the given destination. If the given 
     * destination is <code>null</code>, then a new line will be created 
     * and returned
     * 
     * @param length The length
     * @param lineSrc The source line
     * @param lineDst The destination line
     * @return The destination line
     */
Scale the given line to have the given length about its starting
point, and store the result in the given destination. If the given
destination is null, then a new line will be created
and returned

@param length The length
@param lineSrc The source line
@param lineDst The destination line
@return The destination line
Scale the given line to have the given length about its starting point and store the result in the given destination . If the given destination is null then a new line will be created and returned @param length The length @param lineSrc The source line @param lineDst The destination line @return The destination line
public static Line2D scaleToLength(
        double length, Line2D lineSrc, Line2D lineDst)
    {
        return scale(length / length(lineSrc), lineSrc, lineDst);
    }
public static Line2D scaleToLength ( double length , Line2D lineSrc , Line2D lineDst ) { return scale ( length / length ( lineSrc ) , lineSrc , lineDst ) ; }
Scale the given line to have the given length about its starting
 point, and store the result in the given destination.
Scale the given line to have the given length about its starting point and store the result in the given destination .