Home > PCB_MathPolygon > calculateWidth
PCB_MathPolygon.calculateWidth() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
计算复杂多边形 BBox 宽度
Signature
typescript
calculateWidth(complexPolygon: TPCB_PolygonSourceArray | Array<TPCB_PolygonSourceArray> | IPCB_Polygon | IPCB_ComplexPolygon): number;1
Parameters
Parameter | Type | Description |
|---|---|---|
complexPolygon | TPCB_PolygonSourceArray | Array<TPCB_PolygonSourceArray> | IPCB_Polygon | IPCB_ComplexPolygon | 复杂多边形 |
Returns
number
BBox 宽度