Function VectorMath.LineLineIntersectionFactors
LineLineIntersectionFactors
(float2 start1, float2 dir1, float2 start2, float2 dir2, out float factor1, out float factor2)
Calculates the point start1 + dir1*factor1 == start2 + dir2*factor2 where the two infinite lines intersect.
Public
Static
bool LineLineIntersectionFactors (
float2 | start1 | |
float2 | dir1 | |
float2 | start2 | |
float2 | dir2 | |
out float | factor1 | |
out float | factor2 |
Calculates the point start1 + dir1*factor1 == start2 + dir2*factor2 where the two infinite lines intersect.
Returns false if the lines are close to parallel.