distance between two points
determine if right triangle