public class Polygon3D
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
npoints |
float[] |
xpoints |
float[] |
ypoints |
float[] |
zpoints |
Constructor and Description |
---|
Polygon3D() |
Polygon3D(float[] xpts,
float[] ypts,
float[] zpts) |
Polygon3D(float[] xpts,
float[] ypts,
float[] zpts,
int npts) |
Polygon3D(Point3D[] pts) |
Polygon3D(Point3D[] pts,
int offset) |
Polygon3D(Point3D[] pts,
int offset,
int npts) |
Modifier and Type | Method and Description |
---|---|
void |
addPoint(float x,
float y,
float z) |
Point3D |
centroid() |
boolean |
contains(double x,
double y) |
boolean |
contains(int x,
int y) |
float |
greatestArea() |
float |
greatestDiameter() |
java.lang.String |
toString() |
public int npoints
public float[] xpoints
public float[] ypoints
public float[] zpoints
public Polygon3D()
public Polygon3D(float[] xpts, float[] ypts, float[] zpts)
public Polygon3D(float[] xpts, float[] ypts, float[] zpts, int npts)
public Polygon3D(Point3D[] pts)
public Polygon3D(Point3D[] pts, int offset)
public Polygon3D(Point3D[] pts, int offset, int npts)
public boolean contains(int x, int y)
public boolean contains(double x, double y)
public void addPoint(float x, float y, float z)
public Point3D centroid()
public float greatestArea()
public float greatestDiameter()
public java.lang.String toString()
toString
in class java.lang.Object