Class InfBufLine
java.lang.Object
org.locationtech.spatial4j.shape.impl.InfBufLine
INERNAL: A buffered line of infinite length.
Public for test access.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final double
private final double
private static final double
Error epsilon.private final double
private static final int[]
private final double
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) boolean
static void
cornerByQuadrant
(Rectangle r, int cornerQuad, Point out) double
INTERNAL AKA lineToPointDistancedouble
getBuf()
double
1 / Math.sqrt(slope * slope + 1)double
double
getSlope()
int
INTERNAL: AKA lineToPointQuadrant(package private) SpatialRelation
toString()
-
Field Details
-
EPS
private static final double EPSError epsilon.- See Also:
-
slope
private final double slope -
intercept
private final double intercept -
buf
private final double buf -
distDenomInv
private final double distDenomInv -
oppositeQuad
private static final int[] oppositeQuad
-
-
Constructor Details
-
InfBufLine
InfBufLine(double slope, Point point, double buf)
-
-
Method Details
-
relate
-
contains
-
distanceUnbuffered
INTERNAL AKA lineToPointDistance -
quadrant
INTERNAL: AKA lineToPointQuadrant -
cornerByQuadrant
-
getSlope
public double getSlope() -
getIntercept
public double getIntercept() -
getBuf
public double getBuf() -
getDistDenomInv
public double getDistDenomInv()1 / Math.sqrt(slope * slope + 1) -
toString
-