public class HotPixel
extends java.lang.Object
The hot pixel operations are all computed in the integer domain to avoid rounding problems.
Constructor and Description |
---|
HotPixel(Coordinate pt,
double scaleFactor,
LineIntersector li) |
Modifier and Type | Method and Description |
---|---|
boolean |
addSnappedNode(NodedSegmentString segStr,
int segIndex)
Adds a new node (equal to the snap pt) to the specified segment
if the segment passes through the hot pixel
|
Coordinate |
getCoordinate() |
Envelope |
getSafeEnvelope()
Returns a "safe" envelope that is guaranteed to contain the hot pixel
|
boolean |
intersects(Coordinate p0,
Coordinate p1) |
boolean |
intersectsScaled(Coordinate p0,
Coordinate p1) |
public HotPixel(Coordinate pt, double scaleFactor, LineIntersector li)
public Coordinate getCoordinate()
public Envelope getSafeEnvelope()
public boolean intersects(Coordinate p0, Coordinate p1)
public boolean intersectsScaled(Coordinate p0, Coordinate p1)
public boolean addSnappedNode(NodedSegmentString segStr, int segIndex)
segStr
- segIndex
-