Click or drag to resize

FoundLineCalcDistance Method

Overload List
 NameDescription
Public methodCalcDistance(dvec3) Calculates the distance between this line and the given point p.
Public methodCalcDistance(PointF) Calculates the distance between this line and the given point p.
Public methodCalcDistance(FoundLine, Boolean, dvec3) Distance between two lines: The distance between two parallel lines 1 and 2 is just the difference R2-R1. This calculation turned out to be instable in case the angles of the lines differ too much. Too much can mean rather small angles if R is big. Therefore another distance definition is used if the flag isMidpointBased is true: This line is the base line which defines the Angle. The given "other" line in the argument is the line we want the distance to know with its start and end points P1 and P2. For the "other line" the mid point M is calculated, and its distance D to the plumb point will be returned as the distance between the lines.
Top
See Also