Package net.thucydides.core.geometry
Class Line
- java.lang.Object
-
- net.thucydides.core.geometry.Line
-
public class Line extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Line.LineBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Line.LineBuilder
from(Point origin)
Point
getDestination()
Point
getOrigin()
BigDecimal
getSlope()
BigDecimal
getYIntercept()
Optional<Point>
intersectionWith(Line line)
String
toString()
-
-
-
Method Detail
-
getOrigin
public Point getOrigin()
-
getDestination
public Point getDestination()
-
getSlope
public BigDecimal getSlope()
-
getYIntercept
public BigDecimal getYIntercept()
-
from
public static Line.LineBuilder from(Point origin)
-
-