## Coordinate


An immutable 2D coordinate.


Usage


``` python
Coordinate(
    x,
    y,
    label="",
)
```


## Parameters


`x: float`  
X coordinate.

`y: float`  
Y coordinate.

`label: str = ``""`  
Optional label.


## Methods

| Name | Description |
|----|----|
| [distance_to()](#distance_to) | Calculate distance to another coordinate. |

------------------------------------------------------------------------


#### distance_to()


Calculate distance to another coordinate.


Usage


``` python
distance_to(other)
```


##### Parameters


`other: Coordinate`  
The other coordinate.


##### Returns


`float`  
Euclidean distance.
