src/main/java/de/javagl/geom/AffineTransforms.java
/**
     * Creates a new line that is transformed with the given transform,
     * which is assumed to only contain a scale and translation
     * 
     * @param at The affine transform
     * @param l The line
     * @return The transformed line
     */
Creates a new line that is transformed with the given transform,
which is assumed to only contain a scale and translation

@param at The affine transform
@param l The line
@return The transformed line
Creates a new line that is transformed with the given transform which is assumed to only contain a scale and translation @param at The affine transform @param l The line @return The transformed line
private static Line2D createScaledAndTranslated(
        AffineTransform at, Line2D l)
    {
        Line2D result = new Line2D.Double(
            l.getX1() * at.getScaleX() + at.getTranslateX(), 
            l.getY1() * at.getScaleY() + at.getTranslateY(),
            l.getX2() * at.getScaleX() + at.getTranslateX(), 
            l.getY2() * at.getScaleY() + at.getTranslateY());
        return result;
    }
private static Line2D createScaledAndTranslated ( AffineTransform at , Line2D l ) { Line2D result = new Line2D . Double ( l . getX1 ( ) * at . getScaleX ( ) + at . getTranslateX ( ) , l . getY1 ( ) * at . getScaleY ( ) + at . getTranslateY ( ) , l . getX2 ( ) * at . getScaleX ( ) + at . getTranslateX ( ) , l . getY2 ( ) * at . getScaleY ( ) + at . getTranslateY ( ) ) ; return result ; }
Creates a new line that is transformed with the given transform,
 which is assumed to only contain a scale and translation
Creates a new line that is transformed with the given transform which is assumed to only contain a scale and translation