src/main/java/de/javagl/geom/AffineTransforms.java
/**
     * Returns whether the given affine transform has a rotation component
     * 
     * @param at The affine transform
     * @return Whether the transform has a rotation component
     */
Returns whether the given affine transform has a rotation component

@param at The affine transform
@return Whether the transform has a rotation component
Returns whether the given affine transform has a rotation component @param at The affine transform @return Whether the transform has a rotation component
private static boolean hasRotation(AffineTransform at)
    {
        int type = at.getType();
        if (type == AffineTransform.TYPE_GENERAL_TRANSFORM)
        {
            return true;
        }
        return 
            (((type & AffineTransform.TYPE_GENERAL_ROTATION ) != 0) ||
             ((type & AffineTransform.TYPE_QUADRANT_ROTATION) != 0));
    }
private static boolean hasRotation ( AffineTransform at ) { int type = at . getType ( ) ; if ( type == AffineTransform . TYPE_GENERAL_TRANSFORM ) { return true ; } return ( ( ( type & AffineTransform . TYPE_GENERAL_ROTATION ) != 0 ) || ( ( type & AffineTransform . TYPE_QUADRANT_ROTATION ) != 0 ) ) ; }
Returns whether the given affine transform has a rotation component
Returns whether the given affine transform has a rotation component