Class InfBufLine


  • public class InfBufLine
    extends Object
    INERNAL: A buffered line of infinite length. Public for test access.
    • Method Detail

      • distanceUnbuffered

        public double distanceUnbuffered​(Point c)
        INTERNAL AKA lineToPointDistance
      • quadrant

        public int quadrant​(Point c)
        INTERNAL: AKA lineToPointQuadrant
      • cornerByQuadrant

        public static void cornerByQuadrant​(Rectangle r,
                                            int cornerQuad,
                                            Point out)
      • getSlope

        public double getSlope()
      • getIntercept

        public double getIntercept()
      • getBuf

        public double getBuf()
      • getDistDenomInv

        public double getDistDenomInv()
        1 / Math.sqrt(slope * slope + 1)