Defined in:Calculates the squared distance between two lines.
float SquaredDistanceLineToLine(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.|
SquaredDistanceLineToLinefunction returns the squared distance of closest approach between the two lines defined by p1 + tv1 and p2 + tv2. If the lines are parallel, then the squared perpendicular distance between the lines is returned.