Interface ILcd2DBinaryTopology
- All Known Subinterfaces:
ILcd2DEllipsoidalBinaryTopology
- All Known Implementing Classes:
ALcd2DBasicBinaryTopology
,ALcd2DBasicBinaryTopologyMultiShape
,TLcdCartesianBasicBinaryTopology
,TLcdEllipsoidalBasicBinaryTopology
,TLcdSphericalBasicBinaryTopology
ILcdShapes
.- Since:
- 1.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Constant to be used to indicate the operation to be performed is to check whether the first shape contains the second shape.static final int
Constant to be used to indicate the operation to be performed is to check whether the first shape is inside the second shape.static final int
Topology relation constant INTERACT TwoILcdShape
objects INTERACT if and only if there is some overlap meaning they have at least one point in common.static final int
Constant 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 TypeMethodDescriptionboolean
checkTopology
(ILcdShape aS1, ILcdShape aS2, int aRelation) Returnstrue
if and only if the binary topology relationaRelation
holdstrue
onaS1
andaS2
.
-
Field Details
-
INTERACT
static final int INTERACTTopology relation constant INTERACT Two
ILcdShape
objects INTERACT if and only if there is some overlap meaning they have at least one point in common.- 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
INSIDE
operation.This is a more fine-grained check than the
INTERACT
check. If this check returnstrue
, theINTERACT
check will also return true.- 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
CONTAIN
operation.This is a more fine-grained check than the
INTERACT
check. If this check returnstrue
, theINTERACT
check will also return true.- 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
INTERACT
check. If this check returnstrue
, theINTERACT
check will also return true.- See Also:
-
-
Method Details
-
checkTopology
Returnstrue
if and only if the binary topology relationaRelation
holdstrue
onaS1
andaS2
.- 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:
true
if and only if the binary topology relation aRelation holdstrue
on aS1 and aS2.
-