Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- resize_factor = (b-a).magnitude()/(d-c).magnitude()
- c = c * resize_factor
- d = d * resize_factor
- rotation = (b-a).angle() - (d-c).angle()
- c = rotate_about_origin(c, rotation)
- d = rotate_about_origin(d, rotation)
- translation = c - a
Add Comment
Please, Sign In to add comment