Package com.esri.core.geometry
Class PointInPolygonHelper
- java.lang.Object
-
- com.esri.core.geometry.PointInPolygonHelper
-
final class PointInPolygonHelper extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
m_bAlternate
private boolean
m_bBreak
private boolean
m_bPointInAnyOuterRingTest
private boolean
m_bTestBorder
private Point2D
m_inputPoint
private double
m_maxy
private double
m_miny
private SegmentBuffer[]
m_monotoneParts
private double
m_tolerance
private double
m_toleranceSqr
private int
m_windnum
private double[]
m_xOrds
-
Constructor Summary
Constructors Constructor Description PointInPolygonHelper(boolean bFillRule_Alternate, Point2D inputPoint, double tolerance)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static int
_isPointInPolygonInternal(Polygon inputPolygon, Point2D inputPoint, double tolerance)
private static int
_isPointInPolygonInternalWithQuadTree(Polygon inputPolygon, QuadTreeImpl quadTree, Point2D inputPoint, double tolerance)
(package private) static boolean
_isRingInRing2D(MultiPath polygon, int iRing1, int iRing2, double tolerance, QuadTree quadTree)
private boolean
_testBorder(Segment seg)
private void
doOne(Segment seg)
static int
isPointInAnyOuterRing(Polygon inputPolygon, Point2D inputPoint, double tolerance)
(package private) static int
isPointInPolygon(Polygon inputPolygon, double inputPointXVal, double inputPointYVal, double tolerance)
static int
isPointInPolygon(Polygon inputPolygon, Point2D inputPoint, double tolerance)
static int
isPointInPolygon(Polygon inputPolygon, Point inputPoint, double tolerance)
static int
isPointInRing(MultiPathImpl inputPolygonImpl, int iRing, Point2D inputPoint, double tolerance, QuadTree quadTree)
private boolean
processSegment(Segment segment)
(package private) static boolean
quadTreeWillHelp(Polygon polygon, int c_queries)
private int
result()
-
-
-
Field Detail
-
m_inputPoint
private Point2D m_inputPoint
-
m_windnum
private int m_windnum
-
m_monotoneParts
private SegmentBuffer[] m_monotoneParts
-
m_xOrds
private double[] m_xOrds
-
m_tolerance
private double m_tolerance
-
m_toleranceSqr
private double m_toleranceSqr
-
m_miny
private double m_miny
-
m_maxy
private double m_maxy
-
m_bAlternate
private boolean m_bAlternate
-
m_bTestBorder
private boolean m_bTestBorder
-
m_bBreak
private boolean m_bBreak
-
m_bPointInAnyOuterRingTest
private boolean m_bPointInAnyOuterRingTest
-
-
Constructor Detail
-
PointInPolygonHelper
public PointInPolygonHelper(boolean bFillRule_Alternate, Point2D inputPoint, double tolerance)
-
-
Method Detail
-
result
private int result()
-
_testBorder
private boolean _testBorder(Segment seg)
-
doOne
private void doOne(Segment seg)
-
processSegment
private boolean processSegment(Segment segment)
-
_isPointInPolygonInternal
private static int _isPointInPolygonInternal(Polygon inputPolygon, Point2D inputPoint, double tolerance)
-
_isPointInPolygonInternalWithQuadTree
private static int _isPointInPolygonInternalWithQuadTree(Polygon inputPolygon, QuadTreeImpl quadTree, Point2D inputPoint, double tolerance)
-
isPointInPolygon
public static int isPointInPolygon(Polygon inputPolygon, Point2D inputPoint, double tolerance)
-
isPointInPolygon
static int isPointInPolygon(Polygon inputPolygon, double inputPointXVal, double inputPointYVal, double tolerance)
-
isPointInRing
public static int isPointInRing(MultiPathImpl inputPolygonImpl, int iRing, Point2D inputPoint, double tolerance, QuadTree quadTree)
-
isPointInPolygon
public static int isPointInPolygon(Polygon inputPolygon, Point inputPoint, double tolerance)
-
isPointInAnyOuterRing
public static int isPointInAnyOuterRing(Polygon inputPolygon, Point2D inputPoint, double tolerance)
-
_isRingInRing2D
static boolean _isRingInRing2D(MultiPath polygon, int iRing1, int iRing2, double tolerance, QuadTree quadTree)
-
quadTreeWillHelp
static boolean quadTreeWillHelp(Polygon polygon, int c_queries)
-
-