org.apache.commons.math3.geometry.euclidean.twod

## Class Segment

- java.lang.Object
- - org.apache.commons.math3.geometry.euclidean.twod.Segment

-     public class Segment
      extends Object

  Simple container for a two-points segment.
  Since:
    3.0
  Version:
    $Id: Segment.java 1244107 2012-02-14 16:17:55Z erans $

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Segment(Vector2D start, Vector2D end, Line line)` Build a segment.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Vector2D` | `getEnd()` Get the end point of the segment.
    `Line` | `getLine()` Get the line containing the segment.
    `Vector2D` | `getStart()` Get the start point of the segment.

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

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

- - ### Constructor Detail

    - #### Segment

          public Segment(Vector2D start,
                 Vector2D end,
                 Line line)

      Build a segment.
      Parameters:
        `start` - start point of the segment
        `end` - end point of the segment
        `line` - line containing the segment

  - ### Method Detail

    - #### getStart

          public Vector2D getStart()

      Get the start point of the segment.
      Returns:
        start point of the segment

    - #### getEnd

          public Vector2D getEnd()

      Get the end point of the segment.
      Returns:
        end point of the segment

    - #### getLine

          public Line getLine()

      Get the line containing the segment.
      Returns:
        line containing the segment

Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.