AdvancedStarting point of the first segment.
Ending point of the first segment.
Starting point of the second segment.
Ending point of the second segment.
OptionaloutPoint: 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
NaNpoint{x: NaN, y: NaN}. The intersection point must land inside the extents of the segments or return aNaNPoint.Note: Only available with pixi.js/math-extras.