public interface ILcdPolygon extends ILcdShape, ILcdPointList
ILcdPolygon
is an ILcdShape
that represents a closed polygon.
Its vertices can be accessed through the ILcdPointList
interface.
The polygon has an orientation that is clockwise or counter-clockwise.Modifier and Type | Field and Description |
---|---|
static int |
CLOCKWISE
Indicates a clockwise orientation of a polygon.
|
static int |
COUNTERCLOCKWISE
Indicates a counter-clockwise orientation of a polygon.
|
static int |
INVALID_ORIENTATION
Indicates that the orientation was not calculated yet.
|
Modifier and Type | Method and Description |
---|---|
int |
getOrientation()
Returns the orientation of this
ILcdPolygon :
ILcdPolygon.CLOCKWISE or ILcdPolygon.COUNTERCLOCKWISE . |
contains2D, contains2D, contains3D, contains3D, getFocusPoint
getBounds
clone
getPoint, getPointCount, getPointSFCT, getX, getY, getZ
static final int CLOCKWISE
static final int COUNTERCLOCKWISE
static final int INVALID_ORIENTATION
int getOrientation()
ILcdPolygon
:
ILcdPolygon.CLOCKWISE
or ILcdPolygon.COUNTERCLOCKWISE
.ILcdPolygon
:
ILcdPolygon.CLOCKWISE
or ILcdPolygon.COUNTERCLOCKWISE
.
This method should not return INVALID_ORIENTATION
, which is only to be used for resetting the orientation
so that it can be recalculated.