Interface S2ShapeAspect.VertexAspect

    • Method Detail

      • numVertices

        int numVertices()
        Returns the number of vertices. May be different from S2Shape.numEdges().
      • vertex

        S2Point vertex​(int vertexId)
        Returns a vertex of this shape, from 0 (inclusive) to numVertices() (exclusive).
      • vertices

        default java.util.List<S2Point> vertices()
        Returns the vertices in this shape. Less efficient but may be more convenient.