public class Wireframe extends Plot
Constructor and Description |
---|
Wireframe(double[][] vertices,
int[][] edges,
java.awt.Color color)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double[] |
getLowerBound()
Returns the lower bound of data.
|
double[] |
getUpperBound()
Returns the upper bound of data.
|
static Wireframe |
of(double[][] vertices,
int[][] edges)
Constructor.
|
void |
paint(Graphics g)
Draws the shape.
|
public Wireframe(double[][] vertices, int[][] edges, java.awt.Color color)
vertices
- a n-by-2 or n-by-3 array which are coordinates of n vertices.edges
- an m-by-2 array of which each row is the vertex indices of two
end points of each edge.public double[] getLowerBound()
Plot
getLowerBound
in class Plot
public double[] getUpperBound()
Plot
getUpperBound
in class Plot
public static Wireframe of(double[][] vertices, int[][] edges)
vertices
- a n-by-2 or n-by-3 array which are coordinates of n vertices.edges
- an m-by-2 array of which each row is the vertex indices of two
end points of each edge.