clik-engine API
    Preparing search index...

    Function GetLineToRectangle

    • Checks for intersection between the Line and a Rectangle shape, and returns the intersection points as a Point object array.

      Parameters

      • line: Phaser.Geom.Line

        The Line to check for intersection.

      • rect: object | Phaser.Geom.Rectangle

        The Rectangle to check for intersection.

      • Optionalout: any[]

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

      Returns any[]