eda_sys_math_distance_to_point
Calculate the shortest distance from a point to a polygon boundary, returning 0 when the point lies inside the polygon.
Instructions
sys_Math.distanceToPoint(polygon: TSYS_MathPolygonInput, point: ISYS_MathPoint) -> number
计算点到多边形边界的最短距离
returns: 最短距离,如点在多边形内部则返回 0
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | 按官方签名顺序排列的JSON参数数组 | |
| windowId | No | 目标EDA窗口ID;省略时使用当前活动窗口 |