Class S2ShapeAspect.ChainAspect.Multi.Array
java.lang.Object
com.google.common.geometry.S2ShapeAspect.ChainAspect.Multi
com.google.common.geometry.S2ShapeAspect.ChainAspect.Multi.Array
- All Implemented Interfaces:
S2Shape, S2ShapeAspect.ChainAspect, S2ShapeAspect.EdgeAspect, S2ShapeAspect.Mixed, S2ShapeAspect.TopoAspect, S2ShapeAspect.VertexAspect
- Direct Known Subclasses:
S2LaxPolygonShape.MultiArray, S2LaxPolylineShape.MultiArray
- Enclosing class:
S2ShapeAspect.ChainAspect.Multi
An array of S2Point references for multiple chains.
-
Nested Class Summary
Nested classes/interfaces inherited from class S2ShapeAspect.ChainAspect.Multi
S2ShapeAspect.ChainAspect.Multi.Array, S2ShapeAspect.ChainAspect.Multi.Packed, S2ShapeAspect.ChainAspect.Multi.SnappedNested classes/interfaces inherited from interface S2Shape
S2Shape.MutableEdge, S2Shape.ReferencePointNested classes/interfaces inherited from interface S2ShapeAspect.ChainAspect
S2ShapeAspect.ChainAspect.Multi, S2ShapeAspect.ChainAspect.SimpleNested classes/interfaces inherited from interface S2ShapeAspect.EdgeAspect
S2ShapeAspect.EdgeAspect.Closed, S2ShapeAspect.EdgeAspect.Open -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of vertices.vertex(int index) Returns a vertex of this shape, from 0 (inclusive) toS2ShapeAspect.VertexAspect.numVertices()(exclusive).Methods inherited from class S2ShapeAspect.ChainAspect.Multi
chainId, edgeId, getChainLength, getChainStart, numChainsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface S2Shape
chain, chains, containsOrigin, dimension, getChainEdge, getChainVertex, getEdge, getReferencePoint, hasInterior, numEdgesMethods inherited from interface S2ShapeAspect.EdgeAspect
adjustChains, getChainEdge, getChainVertex, getEdge, numEdges, vertexIdMethods inherited from interface S2ShapeAspect.TopoAspect
containsOrigin, dimension, hasInteriorMethods inherited from interface S2ShapeAspect.VertexAspect
vertices
-
Field Details
-
vertices
-
-
Constructor Details
-
Array
-
-
Method Details
-
numVertices
public int numVertices()Description copied from interface:S2ShapeAspect.VertexAspectReturns the number of vertices. May be different fromS2Shape.numEdges(). -
vertex
Description copied from interface:S2ShapeAspect.VertexAspectReturns a vertex of this shape, from 0 (inclusive) toS2ShapeAspect.VertexAspect.numVertices()(exclusive).
-