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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcornerByQuadrant(Rectangle r, int cornerQuad, Point out)doubledistanceUnbuffered(Point c)INTERNAL AKA lineToPointDistancedoublegetBuf()doublegetDistDenomInv()1 / Math.sqrt(slope * slope + 1)doublegetIntercept()doublegetSlope()intquadrant(Point c)INTERNAL: AKA lineToPointQuadrantStringtoString()
-
-
-
Method Detail
-
distanceUnbuffered
public double distanceUnbuffered(Point c)
INTERNAL AKA lineToPointDistance
-
quadrant
public int quadrant(Point c)
INTERNAL: AKA lineToPointQuadrant
-
getSlope
public double getSlope()
-
getIntercept
public double getIntercept()
-
getBuf
public double getBuf()
-
getDistDenomInv
public double getDistDenomInv()
1 / Math.sqrt(slope * slope + 1)
-
-