Calculate the intersection of two lines. p1/p2 are a point on the lines. v1/v2 are the slopes of the lines (they need not be normalized).

Location

Namespace
Fuse
Package
Fuse.Common 2.9.1

Parameters

p1

float2

v1

float2

p2

float2

v2

float2

r

float2

Returns

bool

true if r contains the intersection point, false if the lines are parallel or coincident.