public interface ILcd2DLineIntersectionTopology
This interface defines 2D outline intersection relations on ILcdShape
s. Given
two implementations of ILcdShape
, it calculates the intersection points between
the outlines of the given shapes.
The line intersection operation always returns points. To get, for example, the intersection of two overlapping polygons as a polygon, you can use the constructive geometry framework instead.
Modifier and Type | Method and Description |
---|---|
ILcdPoint[] |
lineIntersection(ILcdShape aS1,
ILcdShape aS2)
Calculates the intersection points in 2D between the outlines of the given shapes.
|
int |
lineIntersectionSFCT(ILcdShape aS1,
ILcdShape aS2,
ILcd2DEditablePoint[] aPointsSFCT)
Calculates the intersection points in 2D between the outlines of the given shapes.
|
ILcdPoint[] lineIntersection(ILcdShape aS1, ILcdShape aS2)
Note that the order of the intersection points might be unexpected.
aS1
- The first shape.aS2
- The second shape.null
is returned.IllegalArgumentException
- If either one of the shapes or its combination is not supported.int lineIntersectionSFCT(ILcdShape aS1, ILcdShape aS2, ILcd2DEditablePoint[] aPointsSFCT)
Note that the order of the intersection points might be unexpected.
aS1
- The first shape.aS2
- The second shape.aPointsSFCT
- The array of points in which the results should be stored.-1
is returned.IllegalArgumentException
- If either one of the shapes or its combination is not supported.IndexOutOfBoundsException
- If the length of aPointsSFCT
is smaller than the number
of intersection points.