Class S2ShapeAspect.ChainAspect.Simple.Packed
java.lang.Object
com.google.common.geometry.S2ShapeAspect.ChainAspect.Simple
com.google.common.geometry.S2ShapeAspect.ChainAspect.Simple.Packed
- All Implemented Interfaces:
S2Shape, S2ShapeAspect.ChainAspect, S2ShapeAspect.EdgeAspect, S2ShapeAspect.Mixed, S2ShapeAspect.TopoAspect, S2ShapeAspect.VertexAspect
- Direct Known Subclasses:
S2LaxPolygonShape.SimplePacked, S2LaxPolylineShape.SimplePacked
- Enclosing class:
S2ShapeAspect.ChainAspect.Simple
abstract static class S2ShapeAspect.ChainAspect.Simple.Packed
extends S2ShapeAspect.ChainAspect.Simple
A simple chain of packed coordinates.
-
Nested Class Summary
Nested classes/interfaces inherited from class S2ShapeAspect.ChainAspect.Simple
S2ShapeAspect.ChainAspect.Simple.Array, S2ShapeAspect.ChainAspect.Simple.Packed, S2ShapeAspect.ChainAspect.Simple.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.private static double[]private static S2Pointvertex(double[] coordinates, int index) 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 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
-
coordinates
private final double[] coordinates
-
-
Constructor Details
-
Packed
-
-
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). -
toArray
-
vertex
-