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 LineGeometry
public double angleWith(LineGeometry lineToGetAngle, Point cuadrant)
angleWith
in interface LineGeometry
public double angleWith(LineGeometry lineToGetAngle)
angleWith
in interface LineGeometry
public double getGradient()
getGradient
in interface LineGeometry
public double getIntercept()
getIntercept
in interface LineGeometry
public double getX0()
getX0
in interface LineGeometry
public double getY0()
getY0
in interface LineGeometry
public double getX1()
getX1
in interface LineGeometry
public double getY1()
getY1
in interface LineGeometry