Class NormalLine

java.lang.Object
mathvoyage.geometry.NormalLine
All Implemented Interfaces:
Line

public class NormalLine extends Object implements Line
The type Normal line.
  • Field Details

    • slope

      public double slope
      The Slope.
    • shift

      public double shift
      The Shift.
    • yIntercept

      public double yIntercept
      The Y intercept.
    • xIntercept

      public double xIntercept
      The X intercept.
    • coefficientOfX

      public double coefficientOfX
      The Coefficient of x.
    • coefficientOfY

      public double coefficientOfY
      The Coefficient of y.
    • constant

      public double constant
      The Constant.
  • Constructor Details

    • NormalLine

      public NormalLine(double coefficientOfX, double coefficientOfY, double constant)
      Instantiates a new Normal line.
      Parameters:
      coefficientOfX - the coefficient of x
      coefficientOfY - the coefficient of y
      constant - the constant
  • Method Details

    • getCoefficientOfX

      public double getCoefficientOfX()
      Returns the coefficient of x of the line.
      Specified by:
      getCoefficientOfX in interface Line
      Returns:
      The coefficient of x of the line
    • getCoefficientOfY

      public double getCoefficientOfY()
      Returns the coefficient of y of the line.
      Specified by:
      getCoefficientOfY in interface Line
      Returns:
      The coefficient of y of the line
    • getConstant

      public double getConstant()
      Returns the constant of the line.
      Specified by:
      getConstant in interface Line
      Returns:
      The constant of the line
    • getSlope

      public double getSlope()
      Returns the slope of the line.
      Specified by:
      getSlope in interface Line
      Returns:
      The slope of the line
    • getShift

      public double getShift()
      Returns the shift of the line.
      Specified by:
      getShift in interface Line
      Returns:
      The shift of the line
    • getYIntercept

      public double getYIntercept()
      Returns the y-intercept of the line.
      Specified by:
      getYIntercept in interface Line
      Returns:
      The y-intercept of the line
    • getXIntercept

      public double getXIntercept()
      Returns the x-intercept of the line.
      Specified by:
      getXIntercept in interface Line
      Returns:
      The x-intercept of the line