[Back to reference](../README.md)

### `distance(x1, y1, x2, y2)`
Returns the distance between point 1 (`x1, y1`) and point 2 (`x2, y2`).

#### Example:

Calculate the distance between point `100, 100` and point `200, 200`. The result will be around 141.42.
```javascript
let d = gmynd.distance(100, 100, 200, 200);
```

