Package net.thucydides.core.geometry
Class Line
java.lang.Object
net.thucydides.core.geometry.Line
public class Line
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLine.LineBuilder -
Constructor Summary
-
Method Summary
Modifier and Type Method Description static Line.LineBuilderfrom(Point origin)PointgetDestination()PointgetOrigin()java.math.BigDecimalgetSlope()java.math.BigDecimalgetYIntercept()java.util.Optional<Point>intersectionWith(Line line)java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
Line
-
-
Method Details
-
getOrigin
-
getDestination
-
getSlope
public java.math.BigDecimal getSlope() -
getYIntercept
public java.math.BigDecimal getYIntercept() -
intersectionWith
-
from
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-