public class Hull
extends com.google.gwt.core.client.JavaScriptObject
Modifier | Constructor and Description |
---|---|
protected |
Hull() |
Modifier and Type | Method and Description |
---|---|
<T> Array<T> |
apply(Array<T> vertices)
Returns the convex hull for the specified vertices array, using the
current x- and y-coordinate accessors.
|
<T> List<T> |
apply(List<T> vertices)
Returns the convex hull for the specified vertices array, using the
current x- and y-coordinate accessors.
|
Hull |
x(DatumFunction<Double> xAccessor)
Sets the x-coordinate accessor.
|
Hull |
y(DatumFunction<Double> yAccessor)
Sets the y-coordinate accessor.
|
public final Hull x(DatumFunction<Double> xAccessor)
The default accessor consider datum as a two element array and returns the first element.
xAccessor
- the x accessorpublic final Hull y(DatumFunction<Double> yAccessor)
The default accessor consider datum as a two element array and returns the first element.
yAccessor
- the y accessorpublic final <T> Array<T> apply(Array<T> vertices)
The returned convex hull is represented as an array containing a subset of the input vertices, arranged in counterclockwise order (for consistency with polygon.clip).
vertices
- the array of verticespublic final <T> List<T> apply(List<T> vertices)
The returned convex hull is represented as an array containing a subset of the input vertices, arranged in counterclockwise order (for consistency with polygon.clip).
vertices
- the array of verticesCopyright © 2015 gwt-d3. All rights reserved.