Function drawPolygon

  • draw polygon

    Parameters

    • context: CanvasRenderingContext2D
    • polygon: Pick<SATPolygon | Polygon<any>, "calcPoints"> & {
          pos: Vector;
      }
    • isTrigger: boolean = false

    Returns void