Class S2LaxPolygonShape.MultiList

  • 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.MultiList
    extends S2ShapeAspect.ChainAspect.Multi
    implements S2LaxPolygonShape
    A multi polygon with vertices referenced from a List, and cumulative edges referenced from an PrimitiveArrays.Longs.
    • Method Detail

      • 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