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

      A Circle intersects a Triangle if its center is located within it or if any of the Triangle's sides intersect the Circle. As such, the Triangle and the Circle are considered "solid" for the intersection.

      Parameters

      • triangle: Geom.Triangle

        The Triangle to check for intersection.

      • circle: Circle

        The Circle to check for intersection.

      • Optionalout: any[]

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

      Returns any[]