Lines Matching full:children
169 S2Cell[] children = new S2Cell[4]; in testSubdivide() local
170 for (int i = 0; i < children.length; ++i) { in testSubdivide()
171 children[i] = new S2Cell(); in testSubdivide()
173 assertTrue(cell.subdivide(children)); in testSubdivide()
179 exactArea += children[i].exactArea(); in testSubdivide()
180 approxArea += children[i].approxArea(); in testSubdivide()
181 averageArea += children[i].averageArea(); in testSubdivide()
184 assertEquals(children[i].id(), childId); in testSubdivide()
185 assertTrue(children[i].getCenter().aequal(childId.toPoint(), 1e-15)); in testSubdivide()
187 assertEquals(children[i].face(), direct.face()); in testSubdivide()
188 assertEquals(children[i].level(), direct.level()); in testSubdivide()
189 assertEquals(children[i].orientation(), direct.orientation()); in testSubdivide()
190 assertEquals(children[i].getCenterRaw(), direct.getCenterRaw()); in testSubdivide()
192 assertEquals(children[i].getVertexRaw(k), direct.getVertexRaw(k)); in testSubdivide()
193 assertEquals(children[i].getEdgeRaw(k), direct.getEdgeRaw(k)); in testSubdivide()
197 assertTrue(cell.contains(children[i])); in testSubdivide()
198 assertTrue(cell.mayIntersect(children[i])); in testSubdivide()
199 assertTrue(!children[i].contains(cell)); in testSubdivide()
200 assertTrue(cell.contains(children[i].getCenterRaw())); in testSubdivide()
202 assertTrue(cell.contains(children[i].getVertexRaw(j))); in testSubdivide()
204 assertTrue(!children[i].contains(children[j].getCenterRaw())); in testSubdivide()
205 assertTrue(!children[i].mayIntersect(children[j])); in testSubdivide()
216 S2Cap childCap = children[i].getCapBound(); in testSubdivide()
217 S2LatLngRect childRect = children[i].getRectBound(); in testSubdivide()
218 assertTrue(childCap.contains(children[i].getCenter())); in testSubdivide()
219 assertTrue(childRect.contains(children[i].getCenterRaw())); in testSubdivide()
220 assertTrue(parentCap.contains(children[i].getCenter())); in testSubdivide()
221 assertTrue(parentRect.contains(children[i].getCenterRaw())); in testSubdivide()
223 assertTrue(childCap.contains(children[i].getVertex(j))); in testSubdivide()
224 assertTrue(childRect.contains(children[i].getVertex(j))); in testSubdivide()
225 assertTrue(childRect.contains(children[i].getVertexRaw(j))); in testSubdivide()
226 assertTrue(parentCap.contains(children[i].getVertex(j))); in testSubdivide()
227 if (!parentRect.contains(children[i].getVertex(j))) { in testSubdivide()
229 System.out.println("Children " + i + ": " + children[i]); in testSubdivide()
231 System.out.println("Vertex raw(j) " + children[i].getVertex(j)); in testSubdivide()
232 System.out.println("Latlng of vertex: " + new S2LatLng(children[i].getVertex(j))); in testSubdivide()
235 assertTrue(parentRect.contains(children[i].getVertex(j))); in testSubdivide()
236 if (!parentRect.contains(children[i].getVertexRaw(j))) { in testSubdivide()
238 System.out.println("Children " + i + ": " + children[i]); in testSubdivide()
240 System.out.println("Vertex raw(j) " + children[i].getVertexRaw(j)); in testSubdivide()
241 System.out.println("Latlng of vertex: " + new S2LatLng(children[i].getVertexRaw(j))); in testSubdivide()
244 assertTrue(parentRect.contains(children[i].getVertexRaw(j))); in testSubdivide()
251 if (childCap.contains(children[j].getVertex(k))) { in testSubdivide()
254 if (childRect.contains(children[j].getVertexRaw(k))) { in testSubdivide()
268 // Check all children for the first few levels, and then sample randomly. in testSubdivide()
272 S2Point center = S2Projections.getNorm(children[i].face()); in testSubdivide()
273 S2Point edge = S2Point.add(center, S2Projections.getUAxis(children[i].face())); in testSubdivide()
274 S2Point corner = S2Point.add(edge, S2Projections.getVAxis(children[i].face())); in testSubdivide()
276 S2Point p = children[i].getVertexRaw(j); in testSubdivide()
283 testSubdivide(children[i]); in testSubdivide()
425 S2Cell[] children = new S2Cell[4]; in expandChildren1() local
426 assertTrue(cell.subdivide(children)); in expandChildren1()
427 if (children[0].level() < MAX_LEVEL) { in expandChildren1()
429 expandChildren1(children[pos]); in expandChildren1()