Should tx/ty check come first since translation is probably more common than scale/rotate?