src/main/java/de/javagl/geom/AffineTransforms.java
/**
     * Computes the distance that two points have when they are transformed
     * with the given affine transform, and initially had the given distance
     * in x-direction
     * 
     * @param at The affine transform
     * @param distanceX The distance
     * @return The distance after the transform
     */
Computes the distance that two points have when they are transformed
with the given affine transform, and initially had the given distance
in x-direction

@param at The affine transform
@param distanceX The distance
@return The distance after the transform
Computes the distance that two points have when they are transformed with the given affine transform and initially had the given distance in x - direction @param at The affine transform @param distanceX The distance @return The distance after the transform
public static double computeDistanceX(AffineTransform at, double distanceX)
    {
        double dx = at.getScaleX() * distanceX;
        double dy = at.getShearY() * distanceX;
        double result = Math.sqrt(dx*dx+dy*dy);
        return result;
    }
public static double computeDistanceX ( AffineTransform at , double distanceX ) { double dx = at . getScaleX ( ) * distanceX ; double dy = at . getShearY ( ) * distanceX ; double result = Math . sqrt ( dx * dx + dy * dy ) ; return result ; }
Computes the distance that two points have when they are transformed
 with the given affine transform, and initially had the given distance
 in x-direction
Computes the distance that two points have when they are transformed with the given affine transform and initially had the given distance in x - direction