public S2Polyline(List<S2Point> vertices){
  this.numVertices=vertices.size();
  this.vertices=vertices.toArray(new S2Point[numVertices]);
}

public S2Polyline ( List < S2Point > vertices ) { this . numVertices = vertices . size ( ) ; this . vertices = vertices . toArray ( new S2Point [ numVertices ] ) ; }
create a polyline that connects the given vertices . empty polylines are allowed . adjacent vertices should not be identical or antipodal . all vertices should be unit length .
