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
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "eda_sys_math_distance_to_point"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | 按官方签名顺序排列的JSON参数数组 | |
| windowId | No | 目标EDA窗口ID;省略时使用当前活动窗口 |