|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplugins.big.bigsnakeutils.icy.ellipsoid.AbstractEllipsoid
plugins.big.bigsnakeutils.icy.ellipsoid.Ellipsoid2D
public class Ellipsoid2D
Class describing a 2D ellipsoid (i.e. an ellipse)
Field Summary | |
---|---|
double |
a
Major axis of the ellipse. |
double |
alpha
Angle of the ellipse. |
double |
b
Minor axis of the ellipse. |
double |
x0
x coordinate of the center of the ellipse. |
double |
y0
y coordinate of the center of the ellipse. |
Constructor Summary | |
---|---|
Ellipsoid2D()
Default constructor. |
|
Ellipsoid2D(Ellipsoid2D other)
Copy constructor. |
|
Ellipsoid2D(int t)
Default constructor. |
Method Summary | |
---|---|
AbstractEllipsoid |
clone()
Return another instance of this descriptor sharing the same properties. |
boolean |
contains(double x,
double y)
Returns true if the given point is inside the ellipse. |
boolean |
contains(double x,
double y,
double[] R)
Returns true if the give point is insid the ellipse. |
double |
getMaximalRadius()
Maximum radius of the ellipsoid. |
double |
getMinimalRadius()
Minimum radius of the ellipsoid. |
double |
getPerimeter()
Perimeter of the ellipsoid (surface in 3D). |
double[] |
getRotationMatrix()
Return the matrix of rotation corresponding to the ellipsoid orientation. |
double |
getVolume()
Volume of the ellipsoid (surface in 2D). |
boolean |
isOver(double x,
double y)
Return true if the given point is on the edge of the ellipse. |
boolean |
isValid()
Return true if the descriptor represents a valid ellipsoid. |
icy.roi.ROI |
toROI()
Return a new ROI corresponding to this descriptor. |
java.lang.String |
toString()
|
Methods inherited from class plugins.big.bigsnakeutils.icy.ellipsoid.AbstractEllipsoid |
---|
applyRotation, getProperty, getT, multiplyMatrices, setProperty, setT, transposeMatrix |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public double a
public double b
public double x0
public double y0
public double alpha
Constructor Detail |
---|
public Ellipsoid2D()
public Ellipsoid2D(int t)
t
- Time corresponding to this cell.public Ellipsoid2D(Ellipsoid2D other)
other
- Ellipse to copy.Method Detail |
---|
public AbstractEllipsoid clone()
AbstractEllipsoid
clone
in class AbstractEllipsoid
public boolean isValid()
AbstractEllipsoid
isValid
in class AbstractEllipsoid
public double getMinimalRadius()
AbstractEllipsoid
getMinimalRadius
in class AbstractEllipsoid
public double getMaximalRadius()
AbstractEllipsoid
getMaximalRadius
in class AbstractEllipsoid
public double getPerimeter()
AbstractEllipsoid
getPerimeter
in class AbstractEllipsoid
public double getVolume()
AbstractEllipsoid
getVolume
in class AbstractEllipsoid
public double[] getRotationMatrix()
AbstractEllipsoid
getRotationMatrix
in class AbstractEllipsoid
public icy.roi.ROI toROI()
AbstractEllipsoid
toROI
in class AbstractEllipsoid
public java.lang.String toString()
toString
in class java.lang.Object
public boolean contains(double x, double y)
public boolean contains(double x, double y, double[] R)
R
- Rotation matrix of the ellipse.public boolean isOver(double x, double y)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |