Uses of Interface
com.google.common.geometry.S2Shape
-
Uses of S2Shape in com.google.common.geometry
Subinterfaces of S2Shape in com.google.common.geometryModifier and TypeInterfaceDescriptioninterfaceA region defined by a collection of zero or more closed loops.interfaceS2LaxPolylineShape represents a polyline.static interfaceChains are closed, that is, there is an implicit edge between the ends of each chain.static interfaceChains 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 S2ShapeModifier and TypeClassDescriptionfinal classAn abstract directed edge from one S2Point to another S2Point.static classA multi polygon with points referenced from an array.static classstatic classA multi polygon with vertex coordinates stored in a double[].static classA multi polygon with vertices at cell ID centers stored in a long[].static classA simple polygon with points referenced from an array.static classstatic classA simple polygon with vertex coordinates stored in a double[].static classA simple polygon with vertices at cell ID centers stored in a long[].static classA multi polyline storing references to previously allocated S2Point instances.static classA multi polyline storing xyz coordinates in a single packed 'double' array.static classA multi polyline storing cell IDs in a single 'long' array.static classA polyline storing references to previously allocated S2Point instances.static classstatic classA polyline storing xyz coordinates in a single packed 'double' array.static classA polyline storing cell IDs in a single 'long' array.final classAn S2Loop represents a simple spherical polygon.static classAn S2Shape representing a list of S2Points.classWrapper class for indexing a polygon viaS2ShapeIndex.final classAn S2Polyline represents a sequence of zero or more vertices connected by straight edges (geodesics).static classA sequence of chains, represented as an array of the first 'edgeId' for each chain.static classA single non-empty chain.Classes in com.google.common.geometry that implement interfaces with type arguments of type S2ShapeFields in com.google.common.geometry with type parameters of type S2ShapeModifier and TypeFieldDescriptionstatic final VectorCoder<S2Shape> VectorCoder.COMPACT_SHAPEAn encoder/decoder ofS2Shapes, where the shapes use theS2TaggedShapeCoder.COMPACTencoding.static final VectorCoder<S2Shape> VectorCoder.FAST_SHAPEAn encoder/decoder ofS2Shapes, where the shapes use theS2TaggedShapeCoder.FASTencoding.S2ShapeIndex.shapesShapes currently in the index.Methods in com.google.common.geometry that return S2ShapeModifier and TypeMethodDescriptionS2TaggedShapeCoder.decode(PrimitiveArrays.Bytes data, PrimitiveArrays.Cursor cursor) final 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 S2ShapeModifier and TypeMethodDescriptionS2EdgeQuery.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.S2ContainsPointQuery.getContainingShapes(S2Point p) A convenience function that returns all the shapes that containp.S2EdgeQuery.getCrossings(S2Point a, S2Point b) Returns edges for each shape that either crosses AB or shares a vertex with AB.S2ShapeIndex.getShapes()Returns an immutable list view of shapes in the index.Methods in com.google.common.geometry with parameters of type S2ShapeModifier and TypeMethodDescriptionvoidAdds 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 booleanReturns true if all methods of the two S2Shapes return identical results, except for id() and typeTag().S2EdgeQuery.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.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().voidCurrently 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 S2ShapeModifier and TypeMethodDescriptionstatic booleanReturns 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 S2ShapeModifierConstructorDescriptionS2ShapeIndexCoder(List<S2Shape> shapes) Constructs aS2ShapeIndexCoder.