Package com.google.common.geometry
Class S2LaxPolylineShape.SimplePacked
- java.lang.Object
-
- com.google.common.geometry.S2ShapeAspect.ChainAspect.Simple
-
- com.google.common.geometry.S2LaxPolylineShape.SimplePacked
-
- All Implemented Interfaces:
S2LaxPolylineShape,S2Shape,com.google.common.geometry.S2ShapeAspect.ChainAspect,com.google.common.geometry.S2ShapeAspect.EdgeAspect,S2ShapeAspect.EdgeAspect.Open,com.google.common.geometry.S2ShapeAspect.Mixed,com.google.common.geometry.S2ShapeAspect.TopoAspect,com.google.common.geometry.S2ShapeAspect.VertexAspect
- Enclosing interface:
- S2LaxPolylineShape
public static class S2LaxPolylineShape.SimplePacked extends S2ShapeAspect.ChainAspect.Simple implements S2LaxPolylineShape
A polyline storing xyz coordinates in a single packed 'double' array.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.common.geometry.S2LaxPolylineShape
S2LaxPolylineShape.Coder, S2LaxPolylineShape.MultiArray, S2LaxPolylineShape.MultiPacked, S2LaxPolylineShape.MultiSnapped, S2LaxPolylineShape.SimpleArray, S2LaxPolylineShape.SimpleList, S2LaxPolylineShape.SimplePacked, S2LaxPolylineShape.SimpleSnapped
-
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 inherited from interface com.google.common.geometry.S2LaxPolylineShape
EMPTY
-
-
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.Simple
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.S2LaxPolylineShape
containsOrigin, dimension, hasInterior, isEmpty, isFull, numEdges, readResolve
-
Methods inherited from interface com.google.common.geometry.S2Shape
chain, chains, getChainLength, getChainStart, getReferencePoint, numChains
-
Methods inherited from interface com.google.common.geometry.S2ShapeAspect.ChainAspect
chainId, edgeId, getChainLength, getChainStart, numChains
-
Methods inherited from interface com.google.common.geometry.S2ShapeAspect.EdgeAspect
getChainEdge, getChainVertex, getEdge, numEdges
-
Methods inherited from interface com.google.common.geometry.S2ShapeAspect.EdgeAspect.Open
adjustChains, getChainEdge, getChainVertex, getEdge, vertexId
-
-
-
-
Method Detail
-
numVertices
public int numVertices()
Description copied from interface:com.google.common.geometry.S2ShapeAspect.VertexAspectReturns the number of vertices. May be different fromS2Shape.numEdges().
-
vertex
public S2Point vertex(int index)
Description copied from interface:com.google.common.geometry.S2ShapeAspect.VertexAspectReturns a vertex of this shape, from 0 (inclusive) toS2ShapeAspect.VertexAspect.numVertices()(exclusive).
-
-