Lines Matching refs:edgeIndex
129 int edgeIndex = -1;
133 edgeIndex = line.getNearestEdgeIndex(testPoint);
135 line.projectToEdge(testPoint, edgeIndex), S2LatLng.fromDegrees(0, 0).toPoint()));
136 assertEquals(0, edgeIndex);
139 edgeIndex = line.getNearestEdgeIndex(testPoint);
141 line.projectToEdge(testPoint, edgeIndex), S2LatLng.fromDegrees(0, 0.5).toPoint()));
142 assertEquals(0, edgeIndex);
145 edgeIndex = line.getNearestEdgeIndex(testPoint);
147 line.projectToEdge(testPoint, edgeIndex), S2LatLng.fromDegrees(0, 1).toPoint()));
148 assertEquals(0, edgeIndex);
151 edgeIndex = line.getNearestEdgeIndex(testPoint);
153 line.projectToEdge(testPoint, edgeIndex), S2LatLng.fromDegrees(0, 2).toPoint()));
154 assertEquals(1, edgeIndex);
157 edgeIndex = line.getNearestEdgeIndex(testPoint);
159 line.projectToEdge(testPoint, edgeIndex), S2LatLng.fromDegrees(1, 2).toPoint()));
160 assertEquals(2, edgeIndex);