Function JobRVO.ClosestSegmentSegmentPointNonIntersecting
ClosestSegmentSegmentPointNonIntersecting
(ORCALine a, ORCALine b, float ta1, float ta2, float tb1, float tb2)
Closest point on segment a to segment b.
Public
Static
float2 ClosestSegmentSegmentPointNonIntersecting (
a | ||
b | ||
float | ta1 | |
float | ta2 | |
float | tb1 | |
float | tb2 |
Closest point on segment a to segment b.
The segments are given by infinite lines and bounded by t values. p = line.point + line.dir*t.
It is assumed that the two segments do not intersect.