# LineSegment

The `LineSegment` interface represents a line segment defined by two [Points](https://www.dynamsoft.com/capture-vision/docs/web/programming/javascript/api-reference/core/basic-structures/point.md).

```typescript
interface LineSegment {
    startPoint: Point;
    endPoint: Point;
} 
```

## startPoint

The starting point of the line segment.

## endPoint

The ending point of the line segment.
