blob: 33985d094faca86bda5a2647b7b7f6e7eb7e43f0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package geo
// Interval is an inclusive index range [Start, End] over position data, used
// to refer to a stretch of a route by point indexes.
type Interval struct {
Start, End int
}
// NewInterval returns an Interval with the given start and end indexes.
func NewInterval(start, end int) Interval {
return Interval{
Start: start,
End: end,
}
}
|