|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvec_math.Ellipse
public class Ellipse
A tilted ellipse. Tilts by non-zero angles supported.
| Field Summary | |
|---|---|
private double |
a
Ellipse is defined by it central point, major axis and excentricity. |
private Point2D |
center
Ellipse is defined by it central point, major axis and excentricity. |
private double |
e
Ellipse is defined by it central point, major axis and excentricity. |
private double |
theta
Ellipse is defined by it central point, major axis and excentricity. |
| Constructor Summary | |
|---|---|
Ellipse()
|
|
| Method Summary | |
|---|---|
private double |
getBearing(Point2D p)
We return the angle from the center to the stated point in degrees. |
Point2D |
getCenter()
|
double |
getCentralRadius(double nu)
Returns the radius of this ellipse as a function of the non-tilted angle ny. |
private double |
getCentralRadiusSq(double nu)
Returns the square radius of this conic section as a function of the non-tilted angle ny. |
double |
getExcentricity()
Returns the numerical excentricity. |
double |
getFocalRadius(double ny)
Returns the radius of this conic section as a function of the non-tilted angle ny. |
double |
getMajorAxis()
|
double |
getPerimeterDistance(Point2D p)
Returns the distance of this point from the ellipse in radial direction. |
private double |
getPerimeterDistanceSq(Point2D p)
Returns the distance of this point from the ellipse in radial direction. |
Point2D |
getPerimeterPoint(double phi)
Returns the point at the given polar angle, counted from the center of the ellipse and corrected for ellipse tilt. |
double |
getTilt()
Returns the tilt angle in degs. |
boolean |
isInside(Point2D p)
We return true, if this point is within the ellipse. |
static Ellipse |
parseEllipse(String p)
Parses the ellipse from a string. |
void |
setCenter(Point2D p)
Sets the center of the ellipse. |
void |
setExcentricity(double eps)
Sets the numerical excentricity. |
void |
setMajorAxis(double major)
Sets the major axis. |
void |
setTilt(double t)
Sets the tile angle in degs. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private Point2D center
private double a
private double e
private double theta
| Constructor Detail |
|---|
public Ellipse()
| Method Detail |
|---|
public double getFocalRadius(double ny)
public double getCentralRadius(double nu)
private double getCentralRadiusSq(double nu)
public void setTilt(double t)
public double getTilt()
public void setCenter(Point2D p)
public Point2D getCenter()
public void setMajorAxis(double major)
public double getMajorAxis()
public void setExcentricity(double eps)
public double getExcentricity()
public static Ellipse parseEllipse(String p)
throws ParseException
ParseExceptionpublic boolean isInside(Point2D p)
private double getBearing(Point2D p)
public Point2D getPerimeterPoint(double phi)
private double getPerimeterDistanceSq(Point2D p)
public double getPerimeterDistance(Point2D p)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||