improve tilt calculation method "direct"

Created by: yxqd

by using an optimization including both rotation and translation