Class Segment2DImpl
-
-
Constructor Summary
Constructors Constructor Description Segment2DImpl(P first, P second)
-
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
-
-