Line

constructor(begin: Vector2d, end: Vector2d)

Makes line connecting begin to end.


constructor(begin: Vector2d, dir: Vector2d, length: Double)

Parameters

dir

unit vector