phaser - v4.0.0-rc.4
    Preparing search index...
    • Checks for intersection between Rectangle shape and Triangle shape, and returns the intersection points as a Point object array.

      Parameters

      • rect: Geom.Rectangle

        Rectangle object to test.

      • triangle: Geom.Triangle

        Triangle object to test.

      • Optionalout: any[]

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

      Returns any[]