S2Point function ( S2Point arg0 , int arg1 ) { Preconditions . checkState ( numVertices ( ) > 0 , "srini_string" ) ; Preconditions . checkState ( numVertices ( ) == 1 || arg1 < numVertices ( ) - 1 , "srini_string" ) ; if ( numVertices ( ) == 1 ) { return vertex ( 0 ) ; } return S2EdgeUtil . getClosestPoint ( arg0 , vertex ( arg1 ) , vertex ( arg1 + 1 ) ) ; }
given a point p and the index of the start point of an edge of this polyline , returns the point on that edge that is closest to p. concode_field_sep int numVertices concode_elem_sep Logger log concode_elem_sep S2Point[] vertices concode_field_sep int getNearestEdgeIndex concode_elem_sep int numVertices concode_elem_sep S2Cap getCapBound concode_elem_sep boolean contains concode_elem_sep S2Point vertex concode_elem_sep S1Angle getArclengthAngle concode_elem_sep boolean mayIntersect concode_elem_sep int hashCode concode_elem_sep boolean isValid concode_elem_sep boolean equals concode_elem_sep S2Point interpolate concode_elem_sep S2LatLngRect getRectBound