Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/TSegment2 > API/Runtime/GeometryCore/TSegment2/WhichSide
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/SegmentTypes.h |
| Include | #include "SegmentTypes.h" |
int WhichSide
(
const TVector2 < T > & QueryPoint,
T Tolerance
)
Remarks
Determine which side of the segment the query point lies on. This version is deprecated because it and the static function give opposite results. It also does not correctly handle tolerance. -1 if point is to right of line, +1 if left, and 0 if on line or within tolerance band
Parameters
| Name | Description |
|---|---|
| QueryPoint | test point |
| Tolerance | tolerance band in which we return 0 |