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 class
Line.LineBuilder
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description static Line.LineBuilder
from(Point origin)
Point
getDestination()
Point
getOrigin()
java.math.BigDecimal
getSlope()
java.math.BigDecimal
getYIntercept()
java.util.Optional<Point>
intersectionWith(Line line)
java.lang.String
toString()
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:
toString
in classjava.lang.Object
-