1.

The length of a line segment is 10 of one end point is (2,-3) and X coordinate of the second end point is 10 show that y coordinate is 3 or -9​

Answer»

Answer:

To find the distance, dot product has to be found between vectors AB, BE and AB, AE.

AB = (x2 – x1, y2 – y1) = (2 – 0, 0 – 0) = (2, 0)

BE = (X – x2, y – y2) = (4 – 2, 0 – 0) = (2, 0)

AE = (x – x1, y – y1) = (4 – 0, 0 – 0) = (4, 0)

AB . BE = (ABx * BEx + ABy * BEY) = (2 * 2 + 0 * 0) = 4

AB . AE = (ABx * AEx + ABy * AEY) = (2 * 4 + 0 * 0) = 8

Therefore, NEAREST point from E to line segment is point B.

Minimum Distance = BE =  = 2



Discussion

No Comment Found

Related InterviewSolutions