def invert_transform(trans):
 return Transform(trans['to'], trans['from'], linalg.inv(trans['trans']))

def invert_transform ( trans ) : return Transform ( trans [ 'to' ] , trans [ 'from' ] , linalg . inv ( trans [ 'trans' ] ) )
invert a transformation between coordinate systems .