public class LineGeometryImpl extends java.lang.Object implements LineGeometry
| Constructor and Description |
|---|
LineGeometryImpl(double x0,
double y0,
double x1,
double y1) |
LineGeometryImpl(Point p0,
Point p1) |
| Modifier and Type | Method and Description |
|---|---|
double |
angleWith(LineGeometry lineToGetAngle) |
double |
angleWith(LineGeometry lineToGetAngle,
Point cuadrant) |
double |
angleWithGradient(double gradient) |
double |
getGradient() |
double |
getIntercept() |
double |
getX0() |
double |
getX1() |
double |
getY0() |
double |
getY1() |
public LineGeometryImpl(double x0,
double y0,
double x1,
double y1)
public double angleWithGradient(double gradient)
angleWithGradient in interface LineGeometrypublic double angleWith(LineGeometry lineToGetAngle, Point cuadrant)
angleWith in interface LineGeometrypublic double angleWith(LineGeometry lineToGetAngle)
angleWith in interface LineGeometrypublic double getGradient()
getGradient in interface LineGeometrypublic double getIntercept()
getIntercept in interface LineGeometrypublic double getX0()
getX0 in interface LineGeometrypublic double getY0()
getY0 in interface LineGeometrypublic double getX1()
getX1 in interface LineGeometrypublic double getY1()
getY1 in interface LineGeometry