Skip to content

Instantly share code, notes, and snippets.

@tjguk
Created December 7, 2019 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tjguk/3e401d550e2b07399a071a164fb3c71c to your computer and use it in GitHub Desktop.
Save tjguk/3e401d550e2b07399a071a164fb3c71c to your computer and use it in GitHub Desktop.
Add a vector to a coord
def add_v_to_c(c, v):
... cx, cy = c
... vx, vy = v
... return (cx + vx, cy + vy)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment