(1) is a vertical line segment from a point to a straight line, which is obtained by calculating a right triangle;
(2) The formula for the distance from the point (m, n) to the straight line Ax+By+C=0 is:
d=(A
m+B
N+C)/ radical sign (a? +B? )
2. Distance algorithm between points and surfaces.
Make a vertical section from point to surface and get it through the calculation of right triangle;
3. Distance algorithm between straight lines on different planes
Make the common vertical line segment of line A and line B on different planes, and get it by calculation.
The method is as follows: the straight line A is an arbitrary plane, and the straight line B is at point P,
A parallel line C that passes through P and is a straight line A, and the plane (α) is determined by B and C..
The vertical line passing through any point on the straight line A and reaching the plane (α) is.
4. Distance algorithm between line and surface
(1) If the straight line is parallel to the plane, the distance from any point on the straight line to the plane is the line-plane distance;
(2) If the straight line is not parallel to the plane, calculate the included angle between the straight line and the projection of the straight line in the plane.