pixi.js
    Preparing search index...

    Function lineIntersection

    • Advanced

      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.

      Type Parameters

      Parameters

      • aStart: PointData

        First point of the first line.

      • aEnd: PointData

        Second point of the first line.

      • bStart: PointData

        First point of the second line.

      • bEnd: PointData

        Second point of the second line.

      • OptionaloutPoint: T

        A Point-like object in which to store the value, optional (otherwise will create a new Point).

      Returns T

      The point where the lines intersect or a NaN Point.