please help
find the shortest distance between points (20,5) and (10,0)
Answers
Answered by
1
Answer:
I need a basic function to find the shortest distance between a point and a line segment. Feel free to write the solution in any language you want; I can translate it into what I'm using (Javascript).
EDIT: My line segment is defined by two endpoints. So my line segment AB is defined by the two points A (x1,y1) and B (x2,y2). I'm trying to find the distance between this line segment and a point C (x3,y3). My geometry skills are rusty, so the examples I've seen are confusing, I'm sorry to admit.
Answered by
1
Answer:
using distance formula search underoot (x2-x1)*(y2-y1)
Step-by-step explanation:
Similar questions