- drawPolygon(
context: CanvasRenderingContext2D,
polygon: Pick<SATPolygon | Polygon, "calcPoints"> & { pos: Vector },
isTrigger?: boolean,
): void Parameters
- context: CanvasRenderingContext2D
- polygon: Pick<SATPolygon | Polygon, "calcPoints"> & { pos: Vector }
- isTrigger: boolean = false
Returns void
draw polygon