eda_sys_math_get_centroid
Calculates the centroid coordinates of a polygon in EasyEDA Pro. Use it to find the geometric center for component placement or design analysis.
Instructions
sys_Math.getCentroid(polygon: TSYS_MathPolygonInput) -> ISYS_MathPoint 计算多边形质心 returns: 质心坐标
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | 按官方签名顺序排列的JSON参数数组 | |
| windowId | No | 目标EDA窗口ID;省略时使用当前活动窗口 |