Inlined one of the getTransformation function