moved methods to extract stuff from affine transforms to utility class.
also moved a method over from MaMuT.