Class Segment2DImpl

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      Segment2DImpl(P first, P second)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      P getFirst() The first endpoint of the segment.
      P getSecond() The second endpoint of the segment.
      Segment2D<P> copyWith(P first, P second) Creates a copy of this Segment2D using the specified first and second points.
      • Methods inherited from class it.unibo.alchemist.model.geometry.Segment2D

        closestPointTo, contains, distanceTo, distanceTo, getLength, getMidPoint, getToVector, intersect, intersectCircle, isCollinearWith, isCollinearWith, isDegenerate, isHorizontal, isInRectangle, isParallelTo, isVertical, overlapsWith, shrunk, toLine, toRange
      • Methods inherited from class java.lang.Object

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

      • Segment2DImpl

        Segment2DImpl(P first, P second)