Package com.treemap.swing.voronoi.smoothing

# Class LineSegment

java.lang.Object
com.treemap.swing.voronoi.smoothing.LineSegment

public class LineSegment extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `LineSegment()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `addPoint(int x, int y)`
  `Vertex`
  `getEndVertex()`
  `Vertex`
  `getEndVertex(SegmentDirection direction)`
  `List<Point2d>`
  `getPoints()`
  `Vertex`
  `getStartVertex()`
  `Vertex`
  `getStartVertex(SegmentDirection direction)`
  `void`
  `insertPointsAtStart(List<Point2d> pointsToAdd)`
  `boolean`
  `isStraight()`
  `void`
  `setEndVertex(Vertex endPoint)`
  `void`
  `setStartVertex(Vertex startPoint)`
  `void`
  `setStraight(boolean straight)`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### LineSegment

    public LineSegment()

- ## Method Details

  - ### addPoint

    public void addPoint(int x, int y)

  - ### getPoints

    public List<Point2d> getPoints()

  - ### insertPointsAtStart

    public void insertPointsAtStart(List<Point2d> pointsToAdd)

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`

  - ### setStartVertex

    public void setStartVertex(Vertex startPoint)

  - ### getStartVertex

    public Vertex getStartVertex()

  - ### setEndVertex

    public void setEndVertex(Vertex endPoint)

  - ### getEndVertex

    public Vertex getEndVertex()

  - ### getStartVertex

    public Vertex getStartVertex(SegmentDirection direction)

  - ### getEndVertex

    public Vertex getEndVertex(SegmentDirection direction)

  - ### setStraight

    public void setStraight(boolean straight)

  - ### isStraight

    public boolean isStraight()