Function drawPolygon

  • draw polygon

    Parameters

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

    Returns void