Class Inequality2D


  • public class Inequality2D
    extends java.lang.Object
    A linear inequality in a 2D plane. Normal form: a*x + b*y + c >= 0. - where c is either -1, 1 or 0 - If c is 0 then b is -1, 1 or 0 - If c and b are 0, then a is 1 or -1
    • Constructor Summary

      Constructors 
      Constructor Description
      Inequality2D​(double a, double b, double c)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getA()  
      double getB()  
      double getC()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Inequality2D

        public Inequality2D​(double a,
                            double b,
                            double c)
    • Method Detail

      • getA

        public double getA()
      • getB

        public double getB()
      • getC

        public double getC()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object