Package com.google.common.geometry
Class S2ShapeAspect.ChainAspect.Multi.Packed
- java.lang.Object
-
- com.google.common.geometry.S2ShapeAspect.ChainAspect.Multi
-
- com.google.common.geometry.S2ShapeAspect.ChainAspect.Multi.Packed
-
- All Implemented Interfaces:
S2Shape,S2ShapeAspect.ChainAspect,S2ShapeAspect.EdgeAspect,S2ShapeAspect.Mixed,S2ShapeAspect.TopoAspect,S2ShapeAspect.VertexAspect
- Direct Known Subclasses:
S2LaxPolygonShape.MultiPacked,S2LaxPolylineShape.MultiPacked
- Enclosing class:
- S2ShapeAspect.ChainAspect.Multi
abstract static class S2ShapeAspect.ChainAspect.Multi.Packed extends S2ShapeAspect.ChainAspect.Multi
Packed coordinates for multiple chains.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.common.geometry.S2ShapeAspect.ChainAspect.Multi
S2ShapeAspect.ChainAspect.Multi.Array, S2ShapeAspect.ChainAspect.Multi.Packed, S2ShapeAspect.ChainAspect.Multi.Snapped
-
Nested classes/interfaces inherited from interface com.google.common.geometry.S2Shape
S2Shape.MutableEdge, S2Shape.ReferencePoint
-
Nested classes/interfaces inherited from interface com.google.common.geometry.S2ShapeAspect.ChainAspect
S2ShapeAspect.ChainAspect.Multi, S2ShapeAspect.ChainAspect.Simple
-
Nested classes/interfaces inherited from interface com.google.common.geometry.S2ShapeAspect.EdgeAspect
S2ShapeAspect.EdgeAspect.Closed, S2ShapeAspect.EdgeAspect.Open
-
-
Field Summary
Fields Modifier and Type Field Description private double[]coordinates
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intnumVertices()Returns the number of vertices.S2Pointvertex(int index)Returns a vertex of this shape, from 0 (inclusive) toS2ShapeAspect.VertexAspect.numVertices()(exclusive).-
Methods inherited from class com.google.common.geometry.S2ShapeAspect.ChainAspect.Multi
chainId, edgeId, getChainLength, getChainStart, numChains
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.google.common.geometry.S2Shape
chain, chains, containsOrigin, dimension, getChainEdge, getChainVertex, getEdge, getReferencePoint, hasInterior, numEdges
-
Methods inherited from interface com.google.common.geometry.S2ShapeAspect.EdgeAspect
adjustChains, getChainEdge, getChainVertex, getEdge, numEdges, vertexId
-
Methods inherited from interface com.google.common.geometry.S2ShapeAspect.TopoAspect
containsOrigin, dimension, hasInterior
-
Methods inherited from interface com.google.common.geometry.S2ShapeAspect.VertexAspect
vertices
-
-
-
-
Constructor Detail
-
Packed
public Packed(java.lang.Iterable<? extends java.lang.Iterable<S2Point>> chains)
-
-
Method Detail
-
numVertices
public int numVertices()
Description copied from interface:S2ShapeAspect.VertexAspectReturns the number of vertices. May be different fromS2Shape.numEdges().
-
vertex
public S2Point vertex(int index)
Description copied from interface:S2ShapeAspect.VertexAspectReturns a vertex of this shape, from 0 (inclusive) toS2ShapeAspect.VertexAspect.numVertices()(exclusive).
-
-