phaser - v3.90.0
    Preparing search index...
    • Checks for intersection between the Line and a Rectangle shape, and returns the intersection points as a Point object array.

      Parameters

      • line: Geom.Line

        The Line to check for intersection.

      • rect: object | Geom.Rectangle

        The Rectangle to check for intersection.

      • Optionalout: any[]

        An optional array in which to store the points of intersection.

      Returns any[]