public interface ILcdArc extends ILcdShape
ILcdArc
is an ILcdShape
that represents a general
elliptical arc in the 2D space.
All of its points lie at on an ellipse with a center, a semi-major axis with
a rotation angle, and a semi-minor axis.
The arc starts at a start angle and extends over an arc angle.
The parameters of the arc can only be read, not modified.
Modifier and Type | Field and Description |
---|---|
static int |
ARC_END_CORNER
Specifies the corner point at the end angle.
|
static int |
ARC_START_CORNER
Specifies the corner point at the start angle.
|
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
ILcdArc . |
double |
getA()
Returns the length of the semi-major axis.
|
double |
getArcAngle()
Returns the angle over which the arc extends (in degrees).
|
double |
getB()
Returns the length of the semi-minor axis.
|
ILcdPoint |
getCenter()
Returns the center of this
ILcdArc . |
double |
getRotAngle()
Returns the rotation angle of the major axis (in degrees).
|
double |
getStartAngle()
Returns the start angle of the arc (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
static final int ARC_START_CORNER
static final int ARC_END_CORNER
ILcdPoint getCenter()
ILcdArc
.ILcdArc
.double getA()
double getB()
double getRotAngle()
double getStartAngle()
double getArcAngle()
void corner2DEditablePointSFCT(int aCorner, ILcd2DEditablePoint a2DEditablePointSFCT)
ILcdArc
.aCorner
- the corner:
ILcdArc.MAJOR_RADIUS_CORNER
,
ILcdArc.MINOR_RADIUS_CORNER
,
ILcdArc.MAJOR_RADIUS_OPPOSITE_CORNER
,
ILcdArc.MINOR_RADIUS_OPPOSITE_CORNER
,
ILcdArc.ARC_START_CORNER
, or
ILcdArc.ARC_END_CORNER
.a2DEditablePointSFCT
- an ILcd2DEditablePoint
into which
the result is written as a side-effect.