src/main/java/de/javagl/geom/AffineTransforms.java
/**
     * Returns whether the given affine transform has a scale component.
     * This includes flipping (i.e. scaling about -1.0 in x- or y-direction).
     * 
     * @param at The affine transform
     * @return Whether the transform has a scale component
     */
Returns whether the given affine transform has a scale component.
This includes flipping .

@param at The affine transform
@return Whether the transform has a scale component
Returns whether the given affine transform has a scale component . This includes flipping . @param at The affine transform @return Whether the transform has a scale component
private static boolean hasScale(AffineTransform at)
    {
        int type = at.getType();
        if (type == AffineTransform.TYPE_GENERAL_TRANSFORM)
        {
            return true;
        }
        return 
            (((type & AffineTransform.TYPE_UNIFORM_SCALE ) != 0) ||
             ((type & AffineTransform.TYPE_GENERAL_SCALE ) != 0) ||
             ((type & AffineTransform.TYPE_FLIP          ) != 0));
    }
private static boolean hasScale ( AffineTransform at ) { int type = at . getType ( ) ; if ( type == AffineTransform . TYPE_GENERAL_TRANSFORM ) { return true ; } return ( ( ( type & AffineTransform . TYPE_UNIFORM_SCALE ) != 0 ) || ( ( type & AffineTransform . TYPE_GENERAL_SCALE ) != 0 ) || ( ( type & AffineTransform . TYPE_FLIP ) != 0 ) ) ; }
Returns whether the given affine transform has a scale component.
Returns whether the given affine transform has a scale component .