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