public class Geometry
extends com.google.gwt.core.client.JavaScriptObject
Modifier | Constructor and Description |
---|---|
protected |
Geometry() |
Modifier and Type | Method and Description |
---|---|
Hull |
hull()
Create a new hull layout with the default x- and y-accessors.
|
<T> Array<T> |
hull(Array<T> vertices)
Compute the hull with default x- and y-accessors.
|
<T> List<T> |
hull(List<T> vertices)
Create a new hull layout with the default x- and y-accessors for the
given array of vertices.
|
Polygon |
polygon(Array<Array<Double>> vertices)
Returns a polygon object, which is the array of vertices with additional
methods added to it.
|
Quadtree |
quadtree()
Creates a new quadtree factory with the default x-accessor and y-accessor
(that assume the input data is a two-element array of numbers; see below
for details) and extent.
|
Voronoi |
voronoi()
Creates a Voronoi layout with default accessors.
|
public final Hull hull()
public final <T> Array<T> hull(Array<T> vertices)
Hull.apply(Array)
.
public final <T> List<T> hull(List<T> vertices)
Hull.apply(List)
.
public final Polygon polygon(Array<Array<Double>> vertices)
Polygon
objectpublic final Quadtree quadtree()
The default extent is null, such that it will be computed automatically from the input points.
Quadtree
factorypublic final Voronoi voronoi()
Copyright © 2015 gwt-d3. All rights reserved.