public interface ILcdEllipse extends ILcdShape
ILcdEllipse
is an ILcdShape
that represents a
general ellipse in the 2D space.
The ellipse has a center, a semi-major axis with a rotation angle, and a
semi-minor axis.
The parameters of the ellipse can only be read, not modified.
Modifier and Type | Field and Description |
---|---|
static int |
MAJOR_RADIUS_CORNER
Specifies the end point of the major radius axis (at the rotation angle).
|
static int |
MAJOR_RADIUS_OPPOSITE_CORNER
Specifies the end point of the major radius axis at the rotation angle (at the rotation angle + 180 degrees).
|
static int |
MINOR_RADIUS_CORNER
Specifies the corner point of the minor radius axis (at the rotation angle + 90 degrees).
|
static int |
MINOR_RADIUS_OPPOSITE_CORNER
Specifies the corner point of the minor radius axis (at the rotation angle - 90 degrees).
|
Modifier and Type | Method and Description |
---|---|
void |
corner2DEditablePointSFCT(int aCorner,
ILcd2DEditablePoint a2DEditablePointSFCT)
Computes the position of the specified corner of this
ILcdEllipse . |
double |
getA()
Returns the length of the semi-major axis.
|
double |
getB()
Returns the length of the semi-minor axis.
|
ILcdPoint |
getCenter()
Returns the center of this
ILcdEllipse . |
double |
getRotAngle()
Returns the rotation angle of the major axis (in degrees).
|
contains2D, contains2D, contains3D, contains3D, getFocusPoint
getBounds
clone
static final int MAJOR_RADIUS_CORNER
static final int MINOR_RADIUS_CORNER
static final int MAJOR_RADIUS_OPPOSITE_CORNER
static final int MINOR_RADIUS_OPPOSITE_CORNER
ILcdPoint getCenter()
ILcdEllipse
.ILcdEllipse
.double getA()
double getB()
double getRotAngle()
void corner2DEditablePointSFCT(int aCorner, ILcd2DEditablePoint a2DEditablePointSFCT)
ILcdEllipse
.aCorner
- the corner:
ILcdEllipse.MAJOR_RADIUS_CORNER
,
ILcdEllipse.MINOR_RADIUS_CORNER
,
ILcdEllipse.MAJOR_RADIUS_OPPOSITE_CORNER
,
ILcdEllipse.MINOR_RADIUS_OPPOSITE_CORNER
.a2DEditablePointSFCT
- an ILcd2DEditablePoint
into which
the result is written as a side-effect.