Skip to content

Instantly share code, notes, and snippets.

Created March 29, 2014 17:07
Show Gist options
  • Save anonymous/9858166 to your computer and use it in GitHub Desktop.
Save anonymous/9858166 to your computer and use it in GitHub Desktop.
test
def point_on_edge(point, edge):
A, B = edge
eps = (((A - B).length - (point - B).length) - (A - point).length)
return abs(eps) < VTX_PRECISION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment