Home
last modified time | relevance | path

Searched refs:S2Edge (Results 1 – 5 of 5) sorted by relevance

/external/s2-geometry-library-java/tests/com/google/common/geometry/
DS2EdgeIndexTest.java36 private List<S2Edge> edges;
38 public EdgeVectorIndex(List<S2Edge> edges) { in EdgeVectorIndex()
61 private S2Edge randomEdgeCrossingCap(double maxLengthMeters, S2Cap cap) { in randomEdgeCrossingCap()
69 return new S2Edge(p1, p2); in randomEdgeCrossingCap()
78 double edgeLengthMetersMax, double capSpanMeters, int numEdges, List<S2Edge> edges) { in generateRandomEarthEdges()
87 List<S2Edge> allEdges, int minCrossings, int maxChecksCrossingsRatio) { in checkAllCrossings()
95 S2Edge e = allEdges.get(in); in checkAllCrossings()
147 List<S2Edge> allEdges = Lists.newArrayList(); in tryCrossingsRandomInCap()
158 List<S2Edge> allEdges = Lists.newArrayList(); in testSpecificEdges()
159 allEdges.add(new S2Edge(ps.get(0), ps.get(1))); in testSpecificEdges()
[all …]
DS2PolygonBuilderTest.java390 List<S2Edge> unusedEdges = Lists.newArrayList(); in testBuilder()
/external/s2-geometry-library-java/src/com/google/common/geometry/
DS2Edge.java24 public final class S2Edge { class
29 public S2Edge(S2Point start, S2Point end) { in S2Edge() method in S2Edge
55 if (o == null || !(o instanceof S2Edge)) { in equals()
58 S2Edge other = (S2Edge) o; in equals()
DS2PolygonBuilder.java295 public boolean assembleLoops(List<S2Loop> loops, List<S2Edge> unusedEdges) { in assembleLoops()
300 List<S2Edge> dummyUnusedEdges = Lists.newArrayList(); in assembleLoops()
352 public boolean assemblePolygon(S2Polygon polygon, List<S2Edge> unusedEdges) { in assemblePolygon()
380 List<S2Edge> unusedEdges = Lists.newArrayList(); in assemblePolygon()
444 private S2Loop assembleLoop(S2Point v0, S2Point v1, List<S2Edge> unusedEdges) { in assembleLoop()
478 unusedEdges.add(new S2Edge(v0, v1)); in assembleLoop()
505 private void rejectLoop(S2Loop v, int n, List<S2Edge> unusedEdges) { in rejectLoop()
507 unusedEdges.add(new S2Edge(v.vertex(i), v.vertex(j))); in rejectLoop()
512 private void rejectLoop(List<S2Point> v, int n, List<S2Edge> unusedEdges) { in rejectLoop()
514 unusedEdges.add(new S2Edge(v.get(i), v.get(j))); in rejectLoop()
[all …]
DS2Polygon.java494 public abstract S2Edge edgeFromTo(int index); in edgeFromTo()
503 S2Edge fromTo = edgeFromTo(index); in edgeFrom()
510 S2Edge fromTo = edgeFromTo(index); in edgeTo()
536 public S2Edge edgeFromTo(int index) { in edgeFromTo()
552 return new S2Edge(from, to); in edgeFromTo()
599 S2Edge fromTo = bIndex.edgeFromTo(it.index()); in clipEdge()