public class Ellipse extends Object
| Constructor and Description |
|---|
Ellipse(double xc,
double yc,
double radius1,
double radius2,
double theta)
Creates a new ellipse.
|
Ellipse(Point2D center,
double radius1,
double radius2,
double theta)
Creates a new ellipse.
|
| Modifier and Type | Method and Description |
|---|---|
double |
area() |
Point2D |
center() |
static Point2D[] |
centers(Ellipse[] ellipses)
Initializes center array from ellipse array.
|
double |
orientation() |
double |
radius1() |
double |
radius2() |
String |
toString() |
public Ellipse(Point2D center, double radius1, double radius2, double theta)
center - the center of the ellipseradius1 - the length of the major semi-axisradius2 - the length of the minor semi-axistheta - the orientation of the ellipse, in degreespublic Ellipse(double xc,
double yc,
double radius1,
double radius2,
double theta)
xc - the x-coordinate of the center of the ellipseyc - the y-coordinate of the center of the ellipseradius1 - the length of the major semi-axisradius2 - the length of the minor semi-axistheta - the orientation of the ellipse, in degreespublic static final Point2D[] centers(Ellipse[] ellipses)
ellipses - an array of ellipsespublic double area()
public Point2D center()
public double radius1()
public double radius2()
public double orientation()
Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.