Class S2LaxPolygonShape.SimpleSnapped

java.lang.Object
com.google.common.geometry.S2ShapeAspect.ChainAspect.Simple
com.google.common.geometry.S2LaxPolygonShape.SimpleSnapped
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.SimpleSnapped extends S2ShapeAspect.ChainAspect.Simple implements S2LaxPolygonShape
A simple polygon with vertices at cell ID centers stored in a long[].
  • Method Details

    • numVertices

      public int numVertices()
      Description copied from interface: com.google.common.geometry.S2ShapeAspect.VertexAspect
      Returns the number of vertices. May be different from S2Shape.numEdges().
    • vertex

      public S2Point vertex(int index)
      Description copied from interface: com.google.common.geometry.S2ShapeAspect.VertexAspect
      Returns a vertex of this shape, from 0 (inclusive) to S2ShapeAspect.VertexAspect.numVertices() (exclusive).