clik-engine API
    Preparing search index...

    Function GetRectangleToTriangle

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

      Parameters

      • rect: Phaser.Geom.Rectangle

        Rectangle object to test.

      • triangle: Phaser.Geom.Triangle

        Triangle object to test.

      • Optionalout: any[]

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

      Returns any[]