Respect the rotation when calculating left top view of the pattern.
Group zoom calculations and added a comment.
Express zoom factor calculation more elegantly.