To define a Line, give a start and end position.
var start = new Position2D(-1, 1); var end = new Position2D(1, 1); var line = new Line(start, end);