Math-Get perpendicular distance

From Vectorlab
Jump to: navigation, search


Returns the shortest (perpendicular) distance between a line AB and a point C. By Orso B. Schmid


{ Orso ***************************** }
{ returns the shortest distance of a point c from a line a-b  }
FUNCTION M_GetPerpDistance(a, b, c: VECTOR): REAL;
	BEGIN
		M_GetPerpDistance := M_GetDistance(c, PtPerpLine(c, a, b));
	END;