java.lang.Object
org.hipparchus.geometry.euclidean.threed.Segment

public class Segment extends Object
Simple container for a two-points segment.
  • Constructor Details Link icon

    • Segment Link icon

      public Segment(Vector3D start, Vector3D 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 Details Link icon

    • getStart Link icon

      public Vector3D getStart()
      Get the start point of the segment.
      Returns:
      start point of the segment
    • getEnd Link icon

      public Vector3D getEnd()
      Get the end point of the segment.
      Returns:
      end point of the segment
    • getLine Link icon

      public Line getLine()
      Get the line containing the segment.
      Returns:
      line containing the segment