Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Circle

Index

Methods

  • intersectPolygon(polygon: Polygon, [options]?: { density: number }): Polygon
  • Intersect this PIXI.Circle with a PIXI.Polygon. For now, convert the circle to a Polygon approximation and use intersectPolygon. In the future we may replace this with more specialized logic which uses the line-circle intersection formula.

    Parameters

    • polygon: Polygon

      A PIXI.Polygon

    • [options]: { density: number } = {}

      Options which configure how the intersection is computed

      • density: number

    Returns Polygon

    The intersected polygon