Interface Line

All Known Implementing Classes:
NormalLine, SegmentLine, SlopeLine

public interface Line
The interface Line.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the coefficient of x of the line.
    double
    Returns the coefficient of y of the line.
    double
    Returns the constant of the line.
    double
    Returns the shift of the line.
    double
    Returns the slope of the line.
    double
    Returns the x-intercept of the line.
    double
    Returns 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