Why not use
```
bg::default_distance_result<point_type, segment_type>::type
```
instead of double?