Uses of Interface
com.google.common.geometry.S2Shape
-
-
Uses of S2Shape in com.google.common.geometry
Subinterfaces of S2Shape in com.google.common.geometry Modifier and Type Interface Description interfaceS2LaxPolygonShapeA region defined by a collection of zero or more closed loops.interfaceS2LaxPolylineShapeS2LaxPolylineShape represents a polyline.static interfaceS2ShapeAspect.EdgeAspect.ClosedChains are closed, that is, there is an implicit edge between the ends of each chain.static interfaceS2ShapeAspect.EdgeAspect.OpenChains are open, that is, there is no implicit edge between the ends of each chain.static interfacecom.google.common.geometry.S2ShapeAspect.MixedA full S2Shape that mixes together each aspect.Classes in com.google.common.geometry that implement S2Shape Modifier and Type Class Description classS2EdgeAn abstract directed edge from one S2Point to another S2Point.static classS2LaxPolygonShape.MultiArrayA multi polygon with points referenced from an array.static classS2LaxPolygonShape.MultiListA multi polygon with vertices referenced from aList, and cumulative edges referenced from anPrimitiveArrays.Longs.static classS2LaxPolygonShape.MultiPackedA multi polygon with vertex coordinates stored in a double[].static classS2LaxPolygonShape.MultiSnappedA multi polygon with vertices at cell ID centers stored in a long[].static classS2LaxPolygonShape.SimpleArrayA simple polygon with points referenced from an array.static classS2LaxPolygonShape.SimpleListA simple polygon with vertices referenced from aList.static classS2LaxPolygonShape.SimplePackedA simple polygon with vertex coordinates stored in a double[].static classS2LaxPolygonShape.SimpleSnappedA simple polygon with vertices at cell ID centers stored in a long[].static classS2LaxPolylineShape.MultiArrayA multi polyline storing references to previously allocated S2Point instances.static classS2LaxPolylineShape.MultiPackedA multi polyline storing xyz coordinates in a single packed 'double' array.static classS2LaxPolylineShape.MultiSnappedA multi polyline storing cell IDs in a single 'long' array.static classS2LaxPolylineShape.SimpleArrayA polyline storing references to previously allocated S2Point instances.static classS2LaxPolylineShape.SimpleListstatic classS2LaxPolylineShape.SimplePackedA polyline storing xyz coordinates in a single packed 'double' array.static classS2LaxPolylineShape.SimpleSnappedA polyline storing cell IDs in a single 'long' array.classS2LoopAn S2Loop represents a simple spherical polygon.static classS2Point.ShapeAn S2Shape representing a list of S2Points.classS2Polygon.ShapeWrapper class for indexing a polygon viaS2ShapeIndex.classS2PolylineAn S2Polyline represents a sequence of zero or more vertices connected by straight edges (geodesics).static classS2ShapeAspect.ChainAspect.MultiA sequence of chains, represented as an array of the first 'edgeId' for each chain.static classS2ShapeAspect.ChainAspect.SimpleA single non-empty chain.Fields in com.google.common.geometry with type parameters of type S2Shape Modifier and Type Field Description static VectorCoder<S2Shape>VectorCoder. COMPACT_SHAPEAn encoder/decoder ofS2Shapes, where the shapes use theS2TaggedShapeCoder.COMPACTencoding.static VectorCoder<S2Shape>VectorCoder. FAST_SHAPEAn encoder/decoder ofS2Shapes, where the shapes use theS2TaggedShapeCoder.FASTencoding.protected List<S2Shape>S2ShapeIndex. shapesShapes currently in the index.Methods in com.google.common.geometry that return S2Shape Modifier and Type Method Description S2ShapeS2TaggedShapeCoder. decode(PrimitiveArrays.Bytes data, PrimitiveArrays.Cursor cursor)S2ShapeS2ShapeIndex.S2ClippedShape. shape()Returns the original shape this clipped shape was clipped from.Methods in com.google.common.geometry that return types with arguments of type S2Shape Modifier and Type Method Description Map<S2Shape,S2EdgeQuery.Edges>S2EdgeQuery. getCandidates(S2Point a, S2Point b)Given a query edge AB, returns a map from the indexed shapes to a superset of the edges for each shape that intersect AB.Iterable<S2Shape>S2ContainsPointQuery. getContainingShapes(S2Point p)A convenience function that returns all the shapes that containp.Map<S2Shape,S2EdgeQuery.Edges>S2EdgeQuery. getCrossings(S2Point a, S2Point b)Returns edges for each shape that either crosses AB or shares a vertex with AB.List<S2Shape>S2ShapeIndex. getShapes()Returns an immutable list view of shapes in the index.Methods in com.google.common.geometry with parameters of type S2Shape Modifier and Type Method Description voidS2ShapeIndex. add(S2Shape shape)Adds the given shape to this index.static booleanS2ShapeUtil. containsBruteForce(S2Shape shape, S2Point point)Returns true if the given shape contains the given point.voidS2TaggedShapeCoder. encode(S2Shape value, OutputStream output)static booleanS2ShapeUtil. equals(S2Shape a, S2Shape b)Returns true if all methods of the two S2Shapes return identical results, except for id() and typeTag().S2EdgeQuery.EdgesS2EdgeQuery. getCandidates(S2Point a, S2Point b, S2Shape shape)Given a query edge AB and a shapeshape, returns a superset of the edges ofshapethat intersect AB.S2EdgeQuery.EdgesS2EdgeQuery. getCrossings(S2Point a, S2Point b, S2Shape shape)Returns edges from a given shape that either cross AB or share a vertex with AB.static S2Shape.ReferencePointS2ShapeUtil. getReferencePoint(S2Shape shape)This is a helper function for implementing S2Shape.getReferencePoint().voidS2ShapeIndex. remove(S2Shape shape)Currently not implemented.booleanS2ContainsPointQuery. shapeContains(S2Shape shape, S2Point p)Returns true if the given shape containspunder the specifiedS2ContainsPointQuery.S2VertexModel.Method parameters in com.google.common.geometry with type arguments of type S2Shape Modifier and Type Method Description static booleanS2ShapeUtil. equals(List<S2Shape> a, List<S2Shape> b)Returns true if the lists 'a' and 'b' have identical shapes according toS2ShapeUtil.equals(S2Shape, S2Shape).Constructor parameters in com.google.common.geometry with type arguments of type S2Shape Constructor Description S2ShapeIndexCoder(List<S2Shape> shapes)Constructs aS2ShapeIndexCoder.
-