jakke-graphics-ts
    Preparing search index...
    • Offsets a given line by a specified distance to the left or right side.

      Parameters

      • line: Line

        The line to offset, defined by points p0 and p1.

      • dist: number

        The distance to offset the line.

      • side: Direction

        The direction to offset the line ('left' or 'right').

      Returns Line

      A new line object with both endpoints offset by the specified distance and direction.