LineSegment constructor

LineSegment(
  1. Vector2 from,
  2. Vector2 to
)

Creates a LineSegment given a start (from) point and an end (to) point.

Implementation

LineSegment(this.from, this.to);