Line

Functions for manipulating line objects.


Move

move(line: Line, offset: Vec2) Line

Returns a new line translated by the given offset.

Parameters

  • line : The original line to be moved.
  • offset : The vector by which to translate the line.

Returns

Line : A new line translated by the offset.