|
|||||||||
| 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)
Constructs a FloatPolygon from x and y arrays. |
|
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. |
FloatPolygon |
duplicate()
|
Rectangle |
getBounds()
|
Rectangle2D.Double |
getFloatBounds()
|
double |
getLength(boolean isLine)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, 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)
public FloatPolygon(float[] xpoints,
float[] ypoints,
int npoints)
| Method Detail |
|---|
public boolean contains(float x,
float y)
public Rectangle getBounds()
public Rectangle2D.Double getFloatBounds()
public void addPoint(float x,
float y)
public void addPoint(double x,
double y)
public FloatPolygon duplicate()
public double getLength(boolean isLine)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||