Skip to content

Instantly share code, notes, and snippets.

View kinverarity1's full-sized avatar

Kent kinverarity1

  • 19:50 (UTC +09:30)
View GitHub Profile
@kinverarity1
kinverarity1 / profile_tools.py
Created July 25, 2013 13:19
Functions for finding points and distances along multi-segment lines.
'''Functions for finding points and distances along multi-segment lines.
All angles are mathematical convention.
'''
import numpy as np
def distance(point1, point2):
'''Return distance between *point1* and *point2*.'''