adding other cases for triangle inequallity not satisfied.
removing function.
renaming variable.
minnor change.
Creating function that finds relevant points with weights.
minnor change.
changing function.
creating function that returns the points of a segment to be plotted.