Guest User

Untitled

a guest
May 13th, 2019
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. resize_factor = (b-a).magnitude()/(d-c).magnitude()
  2. c = c * resize_factor
  3. d = d * resize_factor
  4. rotation = (b-a).angle() - (d-c).angle()
  5. c = rotate_about_origin(c, rotation)
  6. d = rotate_about_origin(d, rotation)
  7. translation = c - a
Add Comment
Please, Sign In to add comment