phaser - v4.0.0-rc.4
    Preparing search index...
    • Checks if two Triangles intersect, and returns the intersection points as a Point object array.

      A Triangle intersects another Triangle if any pair of their lines intersects or if any point of one Triangle is within the other Triangle. Thus, the Triangles are considered "solid".

      Parameters

      • triangleA: Geom.Triangle

        The first Triangle to check for intersection.

      • triangleB: Geom.Triangle

        The second Triangle to check for intersection.

      • Optionalout: any[]

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

      Returns any[]