segment_intersection
Calculates all pairwise intersection points among 2D line segments, helping detect crossings and overlaps in geometry data.
Instructions
Find all pairwise intersections among a set of 2D line segments, returning intersection points.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"segments": "<segments>"
},
"name": "segment_intersection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| segments | Yes | Array of line segments (max 1000) |