Interface ILcd2DBinaryTopology
- All Known Subinterfaces:
ILcd2DEllipsoidalBinaryTopology
- All Known Implementing Classes:
ALcd2DBasicBinaryTopology,ALcd2DBasicBinaryTopologyMultiShape,TLcdCartesianBasicBinaryTopology,TLcdEllipsoidalBasicBinaryTopology,TLcdSphericalBasicBinaryTopology
ILcdShapes.- Since:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intConstant to be used to indicate the operation to be performed is to check whether the first shape contains the second shape.static final intConstant to be used to indicate the operation to be performed is to check whether the first shape is inside the second shape.static final intTopology relation constant INTERACT TwoILcdShapeobjects INTERACT if and only if there is some overlap meaning they have at least one point in common.static final intConstant to be used to indicate the operation to be performed is to check whether the first shape boundary intersects the second shape boundary. -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckTopology(ILcdShape aS1, ILcdShape aS2, int aRelation) Returnstrueif and only if the binary topology relationaRelationholdstrueonaS1andaS2.
-
Field Details
-
INTERACT
static final int INTERACTTopology relation constant INTERACT Two
ILcdShapeobjects INTERACT if and only if there is some overlap meaning they have at least one point in common.
The red shapes interact with the respective blue shapes. - See Also:
-
CONTAIN
static final int CONTAINConstant to be used to indicate the operation to be performed is to check whether the first shape contains the second shape. This is the inverse of the
INSIDEoperation.This is a more fine-grained check than the
INTERACTcheck. If this check returnstrue, theINTERACTcheck will also return true.
The red shape contains the blue shape. - See Also:
-
INSIDE
static final int INSIDEConstant to be used to indicate the operation to be performed is to check whether the first shape is inside the second shape. This is the inverse of the
CONTAINoperation.This is a more fine-grained check than the
INTERACTcheck. If this check returnstrue, theINTERACTcheck will also return true.
The red shape is inside the blue shape. - See Also:
-
LINE_INTERSECT
static final int LINE_INTERSECTConstant to be used to indicate the operation to be performed is to check whether the first shape boundary intersects the second shape boundary.
This is a more fine-grained check than the
INTERACTcheck. If this check returnstrue, theINTERACTcheck will also return true.
The red shapes line intersect the respective blue shapes. - See Also:
-
-
Method Details
-
checkTopology
Returnstrueif and only if the binary topology relationaRelationholdstrueonaS1andaS2.- Parameters:
aS1- first shapeaS2- second shapeaRelation- relation to be checked upon. Should be one of the constants in this interface (INTERACT,CONTAIN,INSIDE,LINE_INTERSECT).- Returns:
trueif and only if the binary topology relation aRelation holdstrueon aS1 and aS2.
-