int function ( Point2D arg0 ) { double loc0 = Double . POSITIVE_INFINITY ; int loc1 = - 1 ; int loc2 = 0 ; for ( Point2D loc3 : this . vertices ( ) ) { double loc4 = loc3 . distance ( arg0 ) ; if ( loc4 < loc0 ) { loc1 = loc2 ; loc0 = loc4 ; } loc2 ++ ; } return loc1 ; }
computes the index of the closest vertex to the input point . concode_field_sep double y0 concode_elem_sep double w concode_elem_sep double x0 concode_elem_sep double h concode_field_sep void insertVertex concode_elem_sep CirculinearContourArray2D<LinearRing2D> boundary concode_elem_sep Box2D boundingBox concode_elem_sep LinearRing2D asRing concode_elem_sep Point2D vertex concode_elem_sep double distance concode_elem_sep double distance concode_elem_sep Collection<Point2D> vertices concode_elem_sep int edgeNumber concode_elem_sep double getWidth concode_elem_sep void setVertex concode_elem_sep double getHeight concode_elem_sep CirculinearDomain2D transform concode_elem_sep SimplePolygon2D transform concode_elem_sep CirculinearDomain2D buffer concode_elem_sep Polygon2D complement concode_elem_sep int vertexNumber concode_elem_sep double area concode_elem_sep void removeVertex concode_elem_sep Collection<LineSegment2D> edges concode_elem_sep boolean isEmpty concode_elem_sep void draw concode_elem_sep Collection<LinearRing2D> contours concode_elem_sep boolean almostEquals concode_elem_sep boolean isBounded concode_elem_sep double getX concode_elem_sep boolean contains concode_elem_sep boolean contains concode_elem_sep double getY concode_elem_sep Polygon2D asPolygon concode_elem_sep Point2D centroid concode_elem_sep boolean equals concode_elem_sep void addVertex concode_elem_sep Polygon2D clip