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

      The Line intersects the Triangle if it starts inside of it, ends inside of it, or crosses any of the Triangle's sides. Thus, the Triangle is considered "solid".

      Parameters

      • triangle: Geom.Triangle

        The Triangle to check with.

      • line: Geom.Line

        The Line to check with.

      • Optionalout: Math.Vector2[]

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

      Returns Math.Vector2[]