Segment

constructor(point1: Vec2, point2: Vec2)

Parameters

point1

The first point of the segment

point2

The second point of the segment