Class S2LaxPolygonShape.SimpleList

java.lang.Object
com.google.common.geometry.S2ShapeAspect.ChainAspect.Simple
com.google.common.geometry.S2LaxPolygonShape.SimpleList
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.SimpleList extends S2ShapeAspect.ChainAspect.Simple implements S2LaxPolygonShape
A simple polygon with vertices referenced from a List<S2Point>.
  • 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().
      Specified by:
      numVertices in interface com.google.common.geometry.S2ShapeAspect.VertexAspect
    • vertex

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