Class InfBufLine

java.lang.Object
org.locationtech.spatial4j.shape.impl.InfBufLine

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

    • 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)
    • toString

      public String toString()
      Overrides:
      toString in class Object