# OverlapSpan

A span of a path that overlaps another path.

For closed paths, spans may wrap around the wrap point (where the path closes). In this case, `time2` can exceed `path.endTime()` by up to `path.anchors.length`. For example, a span from time 10 to time 16 on a closed path with 13 anchors represents a span that starts at time 10, crosses the wrap point at time 13, and ends at time 3 (16 - 13).

## Constructors

OverlapSpan(path,time1,time2)→[OverlapSpan](https://cuttle.xyz/learn/reference/OverlapSpan)

`path`

`[Path](https://cuttle.xyz/learn/reference/Path)`

`time1`

`number`

`time2`

`number`

## Properties

.path[Path](https://cuttle.xyz/learn/reference/Path)

The path that this span applies to.

.time1number

The start time of the span. This value is always less than or equal to `time2` and within `[0, path.endTime()]`.

.time2number

The end time of the span. This value is always greater than or equal to `time1`. For open paths, this is within `[0, path.endTime()]`. For closed paths, this may exceed `path.endTime()` for spans across the wrap point.

## Methods

.clone()→[OverlapSpan](https://cuttle.xyz/learn/reference/OverlapSpan)

Returns a copy of this span.

.equals(span)→boolean

`span`

`[OverlapSpan](https://cuttle.xyz/learn/reference/OverlapSpan)`

Returns `true` if the spans are _exactly_ equal, `false` otherwise.

.expandToIncludeSpan(span)→this

Expands this span in place to include another span.

`span`

`[OverlapSpan](https://cuttle.xyz/learn/reference/OverlapSpan)`

.isPointLike()→boolean

Returns `true` if this span's times are equal.