|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectij.process.FloatPolygon
public class FloatPolygon
Used by the Roi classes to return float coordinate arrays and to determine if a point is inside or outside of spline fitted selections.
| Field Summary | |
|---|---|
int |
npoints
The number of points. |
float[] |
xpoints
|
float[] |
ypoints
|
| Constructor Summary | |
|---|---|
FloatPolygon()
Constructs an empty FloatPolygon. |
|
FloatPolygon(float[] xpoints,
float[] ypoints,
int npoints)
Constructs a FloatPolygon from x and y arrays. |
|
| Method Summary | |
|---|---|
void |
addPoint(double x,
double y)
|
void |
addPoint(float x,
float y)
|
boolean |
contains(float x,
float y)
Returns 'true' if the point (x,y) is inside this polygon. |
Rectangle |
getBounds()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int npoints
public float[] xpoints
public float[] ypoints
| Constructor Detail |
|---|
public FloatPolygon()
public FloatPolygon(float[] xpoints,
float[] ypoints,
int npoints)
| Method Detail |
|---|
public boolean contains(float x,
float y)
public Rectangle getBounds()
public void addPoint(float x,
float y)
public void addPoint(double x,
double y)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||