Advanced
Starting point of the first segment.
Ending point of the first segment.
Starting point of the second segment.
Ending point of the second segment.
Optional
outPoint: TA Point-like object in which to store the value, optional (otherwise will create a new Point).
The point where the segments intersect or a NaN
Point.
Computes the point where non-coincident and non-parallel segments intersect. Coincident, parallel or non-intersecting segments return a
NaN
point{x: NaN, y: NaN}
. The intersection point must land inside the extents of the segments or return aNaN
Point.Note: Only available with pixi.js/math-extras.