-
-
Constructor Summary
Constructors Constructor Description Segment2DImpl(P first, P second)
-
Method Summary
Modifier and Type Method Description PgetFirst()The first endpoint of the segment. PgetSecond()The second endpoint of the segment. DoublegetLength()BooleangetIsDegenerate()BooleangetIsHorizontal()BooleangetIsVertical()PgetMidPoint()PgetToVector()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.implementations.geometry.euclidean2d.Segment2DImpl
closestPointTo, contains, distanceTo, distanceTo, intersect, intersectCircle, isCollinearWith, isCollinearWith, isInRectangle, isParallelTo, overlapsWith, shrunk, toLine, toRange -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getIsDegenerate
Boolean getIsDegenerate()
-
getIsHorizontal
Boolean getIsHorizontal()
-
getIsVertical
Boolean getIsVertical()
-
getMidPoint
P getMidPoint()
-
getToVector
P getToVector()
-
-
-
-