public class Line extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Line.LineBuilder |
Modifier and Type | Method and Description |
---|---|
static Line.LineBuilder |
from(Point origin) |
Point |
getDestination() |
Point |
getOrigin() |
BigDecimal |
getSlope() |
BigDecimal |
getYIntercept() |
Optional<Point> |
intersectionWith(Line line) |
String |
toString() |
public Point getOrigin()
public Point getDestination()
public BigDecimal getSlope()
public BigDecimal getYIntercept()
public static Line.LineBuilder from(Point origin)
Copyright © 2021. All rights reserved.