Problem 2100. distance to a straight line (2D) given any 2 distinct points on this straight line

Given 2 points P1,P2 on a straight line and a 3rd point, determine the distance of the 3rd point to the straight line. Your answer should have an accuracy of 1e-6.

Hint: create a parameter representation of the (very...) long line.

Solution Stats

60.38% Correct | 39.62% Incorrect
Last Solution submitted on Feb 17, 2020

Problem Comments

Problem Recent Solvers30

Suggested Problems

More from this Author10