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.
  • 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).