Get Distance Between Two Math Points Example (JS)

# Get Distance Between Two Math Points Example (JavaScript)

This example shows how to get the distance between two math points. Start DraftSight. Using the following form: Type the double values of the coordinates of the first point. Type the double values of the coordinates of the second point. Click Get Distance. Inspect the Output. NOTES: Errors are printed to Output. To recreate this example: Right-click the topic and select to view the source. Save the file as an HTML file. Open the HTML file in your web browser. If using Windows Internet Explorer and running scripts is blocked, click the Information bar near the top of the webpage and select Allow Blocked Content.
Coordinates of first point:
X: Y: Z:
Coordinates of second point:
X: Y: Z:
### Output