Skip to content

rectToPolygon

rectToPolygon(rect, close): number[][]

Convert a rect to a polygon

Parameters

rect: number[][]

close: boolean= true

close the polygon

Returns

number[][]

polygon

Source

graphics/geometry.ts:429