Defined in:Calculates the distance between two lines.
float DistanceLineToLine(const Point3D& p1, const Vector3D& v1, const Point3D& p2, const Vector3D& v2);
||The origin p1 of the first line.|
||The direction v1 of the first line.|
||The origin p2 of the second line.|
||The direction v2 of the second line.|
DistanceLineToLinefunction returns the distance of closest approach between the two lines defined by p1 + tv1 and p2 + tv2. If the lines are parallel, then the perpendicular distance between the lines is returned.