@Deprecated public class Ellipse extends Object implements Geometry2D
NOTE: This API is still in flux and might change in incompatible ways in the next release.
| Constructor and Description |
|---|
Ellipse()
Deprecated.
|
Ellipse(Point2D p1,
Point2D p2,
double angle)
Deprecated.
Constructor given bounding rectangle and a rotation.
|
| Modifier and Type | Method and Description |
|---|---|
double |
area()
Deprecated.
Return the area
|
Point2D |
centroid()
Deprecated.
Return the centroid
|
boolean |
contains(Point2D pt)
Deprecated.
Does the shape contain the given point
|
int |
intersect(LineSegment seg,
Point2D pt0,
Point2D pt1)
Deprecated.
Determines if a line segment intersects the ellipse and if so finds the
point(s) of intersection.
|
IntersectCase |
intersect(Rectangle r)
Deprecated.
Returns information about how this shape intersects the given rectangle
|
void |
translate(Vector2D v)
Deprecated.
Translate according to the vector
|
public int intersect(LineSegment seg, Point2D pt0, Point2D pt1)
seg - Line segment to test for intersectionpt0 - OUT - intersection point (if it exists)pt1 - OUT - second intersection point (if it exists)public IntersectCase intersect(Rectangle r)
Geometry2Dintersect in interface Geometry2Dpublic double area()
Geometry2Darea in interface Geometry2Dpublic Point2D centroid()
Geometry2Dcentroid in interface Geometry2Dpublic boolean contains(Point2D pt)
Geometry2Dcontains in interface Geometry2Dpublic void translate(Vector2D v)
Geometry2Dtranslate in interface Geometry2D