Lines Matching refs:hull
4709 d3.geom.hull = function(vertices) {
4711 if (arguments.length) return hull(vertices);
4712 function hull(data) {
4726 hull.x = function(_) {
4727 return arguments.length ? (x = _, hull) : x;
4729 hull.y = function(_) {
4730 return arguments.length ? (y = _, hull) : y;
4732 return hull;
4735 var n = points.length, hull = [ 0, 1 ], hs = 2;
4737 while (hs > 1 && d3_cross2d(points[hull[hs - 2]], points[hull[hs - 1]], points[i]) <= 0) --hs;
4738 hull[hs++] = i;
4740 return hull.slice(0, hs);