Package com.google.common.geometry
Interface S2ShapeAspect.VertexAspect
-
- All Known Subinterfaces:
S2LaxPolygonShape,S2LaxPolylineShape,S2ShapeAspect.EdgeAspect.Closed,S2ShapeAspect.EdgeAspect.Open,S2ShapeAspect.Mixed
- All Known Implementing Classes:
S2LaxPolygonShape.MultiArray,S2LaxPolygonShape.MultiList,S2LaxPolygonShape.MultiPacked,S2LaxPolygonShape.MultiSnapped,S2LaxPolygonShape.SimpleArray,S2LaxPolygonShape.SimpleList,S2LaxPolygonShape.SimplePacked,S2LaxPolygonShape.SimpleSnapped,S2LaxPolylineShape.MultiArray,S2LaxPolylineShape.MultiPacked,S2LaxPolylineShape.MultiSnapped,S2LaxPolylineShape.SimpleArray,S2LaxPolylineShape.SimpleList,S2LaxPolylineShape.SimplePacked,S2LaxPolylineShape.SimpleSnapped,S2ShapeAspect.ChainAspect.Multi,S2ShapeAspect.ChainAspect.Multi.Array,S2ShapeAspect.ChainAspect.Multi.Packed,S2ShapeAspect.ChainAspect.Multi.Snapped,S2ShapeAspect.ChainAspect.Simple,S2ShapeAspect.ChainAspect.Simple.Array,S2ShapeAspect.ChainAspect.Simple.Packed,S2ShapeAspect.ChainAspect.Simple.Snapped
- Enclosing interface:
- S2ShapeAspect
public static interface S2ShapeAspect.VertexAspectA provider of S2Point given a 'vertexId', allowing alternate storage options.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description intnumVertices()Returns the number of vertices.S2Pointvertex(int vertexId)Returns a vertex of this shape, from 0 (inclusive) tonumVertices()(exclusive).default java.util.List<S2Point>vertices()Returns the vertices in this shape.
-
-
-
Method Detail
-
numVertices
int numVertices()
Returns the number of vertices. May be different fromS2Shape.numEdges().
-
vertex
S2Point vertex(int vertexId)
Returns a vertex of this shape, from 0 (inclusive) tonumVertices()(exclusive).
-
vertices
default java.util.List<S2Point> vertices()
Returns the vertices in this shape. Less efficient but may be more convenient.
-
-