rectToPolygon
rectToPolygon(
rect
,close
):number
[][]
Convert a rect to a polygon
Parameters
• rect: number
[][]
• close: boolean
= true
close the polygon
Returns
number
[][]
polygon
rectToPolygon(
rect
,close
):number
[][]
Convert a rect to a polygon
• rect: number
[][]
• close: boolean
= true
close the polygon
number
[][]
polygon