Package mathvoyage.geometry
Interface Line
- All Known Implementing Classes:
NormalLine,SegmentLine,SlopeLine
public interface Line
The interface Line.
-
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the coefficient of x of the line.doubleReturns the coefficient of y of the line.doubleReturns the constant of the line.doublegetShift()Returns the shift of the line.doublegetSlope()Returns the slope of the line.doubleReturns the x-intercept of the line.doubleReturns the y-intercept of the line.
-
Method Details
-
getSlope
double getSlope()Returns the slope of the line.- Returns:
- The slope of the line
-
getShift
double getShift()Returns the shift of the line.- Returns:
- The shift of the line
-
getYIntercept
double getYIntercept()Returns the y-intercept of the line.- Returns:
- The y-intercept of the line
-
getXIntercept
double getXIntercept()Returns the x-intercept of the line.- Returns:
- The x-intercept of the line
-
getCoefficientOfX
double getCoefficientOfX()Returns the coefficient of x of the line.- Returns:
- The coefficient of x of the line
-
getCoefficientOfY
double getCoefficientOfY()Returns the coefficient of y of the line.- Returns:
- The coefficient of y of the line
-
getConstant
double getConstant()Returns the constant of the line.- Returns:
- The constant of the line
-