src/main/java/de/javagl/geom/AffineTransforms.java
/**
     * Invert the given affine transform, storing the result in the
     * given destination. If the given destination is <code>null</code>,
     * then a new affine transform will be created and returned.
     * 
     * @param atSrc The source
     * @param atDst The destination
     * @return The destination.
     * @throws IllegalArgumentException If the given transform can not
     * be inverted.
     */
Invert the given affine transform, storing the result in the
given destination. If the given destination is null,
then a new affine transform will be created and returned.

@param atSrc The source
@param atDst The destination
@return The destination.
@throws IllegalArgumentException If the given transform can not
be inverted.
Invert the given affine transform storing the result in the given destination . If the given destination is null then a new affine transform will be created and returned . @param atSrc The source @param atDst The destination @return The destination . @throws IllegalArgumentException If the given transform can not be inverted .
public static AffineTransform invert(
        AffineTransform atSrc, AffineTransform atDst)
    {
        try
        {
            if (atDst == null)
            {
                return atSrc.createInverse();
            }
            atDst.setTransform(atSrc);
            atDst.invert();
            return atDst;
        }
        catch (NoninvertibleTransformException e)
        {
            throw new IllegalArgumentException("Non-invertible transform", e);
        }
    }
public static AffineTransform invert ( AffineTransform atSrc , AffineTransform atDst ) { try { if ( atDst == null ) { return atSrc . createInverse ( ) ; } atDst . setTransform ( atSrc ) ; atDst . invert ( ) ; return atDst ; } catch ( NoninvertibleTransformException e ) { throw new IllegalArgumentException ( "Non-invertible transform" , e ) ; } }
Invert the given affine transform, storing the result in the
 given destination.
Invert the given affine transform storing the result in the given destination .