calculate_distance_2d
Compute Euclidean distance between two 2D points. Input coordinates x1,y1,x2,y2 to get straight-line distance using √((x2−x1)²+(y2−y1)²). Ideal for geometry and mapping.
Instructions
Compute Euclidean distance between two 2D points. Use for geometry, mapping. Formula: √((x2−x1)²+(y2−y1)²). Inputs: x1,y1,x2,y2. Returns distance. See list_bundles for related 'math' calculators.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | X1 | |
| y1 | Yes | Y1 | |
| x2 | Yes | X2 | |
| y2 | Yes | Y2 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | Computed result. Object whose fields depend on the tool (e.g. {tax, marginal_rate, brackets} for tax tools, {volume_l, gallons} for volume tools). | |
| formula | No | Human-readable formula or method used (e.g. "I=P·r·t", "Magnus formula"). | |
| source | No | Authoritative source for the rule or formula (e.g. "Article 197 CGI", "NF DTU 21"). | |
| reference_url | No | Link to a calcul2 page documenting the calculation in detail. |