Line beginning at position begin, pointed in direction dir, and having length length.
unit vector
Makes line connecting begin to end.