Class LineSegmentInt


  • public class LineSegmentInt
    extends java.lang.Object
    Represents a line segment in 2D space.
    • Constructor Summary

      Constructors 
      Constructor Description
      LineSegmentInt​(Point start, Point end)
      Constructs LineSegmentInt with the given params.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Point getEnd()
      Getter for end field.
      Point getStart()
      Getter for start field.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LineSegmentInt

        public LineSegmentInt​(Point start,
                              Point end)
        Constructs LineSegmentInt with the given params.
        Parameters:
        start - Start point of the segment.
        end - End point of the segment.
    • Method Detail

      • getStart

        public Point getStart()
        Getter for start field. See constructor documentation for more information about the field.
        Returns:
        start
      • getEnd

        public Point getEnd()
        Getter for end field. See constructor documentation for more information about the field.
        Returns:
        end