# Calculating the distance between two points

How do i calculate the distance between two points in java/ opencv

```
Point point1 = new Point(10,10);
Point point2= new Point(56, 35);
line(image, point1, point2, new Scalar(100, 100, 100));
```