Advanced
First point of the first line.
Second point of the first line.
First point of the second line.
Second point of the second line.
Optional
outPoint: TA Point-like object in which to store the value, optional (otherwise will create a new Point).
The point where the lines intersect or a NaN
Point.
Computes the point where non-coincident and non-parallel Lines intersect. Coincident or parallel lines return a
NaN
point{x: NaN, y: NaN}
. The intersection point may land outside the extents of the lines.Note: Only available with pixi.js/math-extras.