Class S2LaxPolygonShape.SimplePacked
java.lang.Object
com.google.common.geometry.S2ShapeAspect.ChainAspect.Simple
com.google.common.geometry.S2LaxPolygonShape.SimplePacked
- All Implemented Interfaces:
S2LaxPolygonShape, S2Shape, com.google.common.geometry.S2ShapeAspect.ChainAspect, com.google.common.geometry.S2ShapeAspect.EdgeAspect, S2ShapeAspect.EdgeAspect.Closed, com.google.common.geometry.S2ShapeAspect.Mixed, com.google.common.geometry.S2ShapeAspect.TopoAspect, com.google.common.geometry.S2ShapeAspect.VertexAspect
- Enclosing interface:
S2LaxPolygonShape
public static class S2LaxPolygonShape.SimplePacked
extends S2ShapeAspect.ChainAspect.Simple
implements S2LaxPolygonShape
A simple polygon with vertex coordinates stored in a double[].
-
Nested Class Summary
Nested classes/interfaces inherited from interface S2LaxPolygonShape
S2LaxPolygonShape.Coder, S2LaxPolygonShape.MultiArray, S2LaxPolygonShape.MultiList, S2LaxPolygonShape.MultiPacked, S2LaxPolygonShape.MultiSnapped, S2LaxPolygonShape.SimpleArray, S2LaxPolygonShape.SimpleList, S2LaxPolygonShape.SimplePacked, S2LaxPolygonShape.SimpleSnappedNested classes/interfaces inherited from interface S2Shape
S2Shape.MutableEdge, S2Shape.ReferencePointNested classes/interfaces inherited from interface com.google.common.geometry.S2ShapeAspect.ChainAspect
S2ShapeAspect.ChainAspect.Multi, S2ShapeAspect.ChainAspect.SimpleNested classes/interfaces inherited from interface com.google.common.geometry.S2ShapeAspect.EdgeAspect
S2ShapeAspect.EdgeAspect.Closed, S2ShapeAspect.EdgeAspect.Open -
Field Summary
Fields inherited from interface S2LaxPolygonShape
CURRENT_ENCODING_VERSION, EMPTY, FULL -
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.Simple
chainId, edgeId, getChainLength, getChainStart, numChainsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface S2LaxPolygonShape
containsOrigin, dimension, getReferencePoint, hasInterior, isEmpty, isFull, readResolveMethods inherited from interface S2Shape
chain, chains, getChainLength, getChainStart, numChainsMethods inherited from interface com.google.common.geometry.S2ShapeAspect.ChainAspect
chainId, edgeId, getChainLength, getChainStart, numChainsMethods inherited from interface com.google.common.geometry.S2ShapeAspect.EdgeAspect
getChainEdge, getChainVertex, getEdge, numEdgesMethods inherited from interface S2ShapeAspect.EdgeAspect.Closed
adjustChains, getChainEdge, getChainVertex, getEdge, numEdges, vertexIdMethods inherited from interface com.google.common.geometry.S2ShapeAspect.TopoAspect
containsOrigin, dimension, hasInteriorMethods inherited from interface com.google.common.geometry.S2ShapeAspect.VertexAspect
numVertices, vertex, vertices
-
Method Details
-
numVertices
public int numVertices()Description copied from interface:com.google.common.geometry.S2ShapeAspect.VertexAspectReturns the number of vertices. May be different fromS2Shape.numEdges(). -
vertex
Description copied from interface:com.google.common.geometry.S2ShapeAspect.VertexAspectReturns a vertex of this shape, from 0 (inclusive) toS2ShapeAspect.VertexAspect.numVertices()(exclusive).
-