Uses of Class
com.google.common.geometry.S2Edge
-
Uses of S2Edge in com.google.common.geometry
Fields in com.google.common.geometry with type parameters of type S2EdgeModifier and TypeFieldDescriptionprivate static final Comparator
<S2Edge> S2ShapeUtil.EDGE_ORDER
Compares edges by start point, and then by end point.S2ShapeUtil.S2EdgeVectorShape.edges
Methods in com.google.common.geometry that return S2EdgeModifier and TypeMethodDescriptionS2EdgeIndex.edgeFromTo
(int index) Return both vertices of the givenindex
in one call.abstract S2Edge
S2Polygon.S2LoopSequenceIndex.edgeFromTo
(int index) Mark theS2Polygon.S2LoopSequenceIndex.edgeFromTo(int)
method abstract again, so children of this class must implement it without usingS2Polygon.S2LoopSequenceIndex.edgeFrom(int)
andS2Polygon.S2LoopSequenceIndex.edgeTo(int)
.S2Polygon.S2PolygonIndex.edgeFromTo
(int index) S2ShapeUtil.S2EdgeVectorShape.get
(int index) Methods in com.google.common.geometry with parameters of type S2EdgeModifier and TypeMethodDescriptionstatic S1ChordAngle
S2EdgeUtil.getDistance
(S2Point p, S2Edge e) Gets the distance fromp
toe
.static S1ChordAngle
S2EdgeUtil.updateMinDistance
(S2Point p, S2Edge e, S1ChordAngle minDistance) Gets the minimum of the distance froma
toe
andminDistance
.Method parameters in com.google.common.geometry with type arguments of type S2EdgeModifier and TypeMethodDescriptionprivate S2Loop
S2PolygonBuilder.assembleLoop
(S2Point v0, S2Point v1, List<S2Edge> unusedEdges) We start at the given edge and assemble a loop taking left turns whenever possible.boolean
S2PolygonBuilder.assemblePolygon
(S2Polygon polygon, List<S2Edge> unusedEdges) Like AssembleLoops, but then assembles the loops into a polygon.private void
S2PolygonBuilder.rejectLoop
(S2Loop v, int n, List<S2Edge> unusedEdges) Erases all edges of the given loop and marks them as unused.