Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Circle

Index

Methods

  • intersectPolygon(polygon: Polygon, [options]?: { density: number; clipType: number; weilerAtherton: string }): Polygon
  • Intersect this PIXI.Circle with a PIXI.Polygon.

    Parameters

    • polygon: Polygon

      A PIXI.Polygon

    • [options]: { density: number; clipType: number; weilerAtherton: string } = {}

      Options which configure how the intersection is computed

      • density: number
      • clipType: number
      • weilerAtherton: string

    Returns Polygon

    The intersected polygon

  • Intersect this PIXI.Circle with an array of ClipperPoints. 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

    • clipperPoints: ClipperPoint[]

      Array of ClipperPoints generated by PIXI.Polygon.toClipperPoints()

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

      Options which configure how the intersection is computed

      • density: number

    Returns Polygon

    The intersected polygon