Skip to content

Instantly share code, notes, and snippets.

View kinverarity1's full-sized avatar

Kent kinverarity1

  • 03:08 (UTC +10: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*.'''