Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/TSegment2
Description
Test if this segment intersects with OtherSegment. Returns true for parallel-line overlaps. Returns same result as IntrSegment2Segment2
| Name | Intersects |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/SegmentTypes.h |
| Include Path | #include "SegmentTypes.h" |
bool Intersects
(
const TSegment2 < T > & OtherSegment,
T DotThresh,
T IntervalThresh
) const
true if segments intersect
Parameters
| Name | Remarks |
|---|---|
| OtherSegment | segment to test against |
| DotThresh | dot-product tolerance used to determine if segments are parallel |
| IntervalThresh | distance tolerance used to allow slighly-not-touching segments to be considered overlapping |