Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/TSegment2 > API/Runtime/GeometryCore/TSegment2/GetSide
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/SegmentTypes.h |
| Include | #include "SegmentTypes.h" |
static int GetSide
(
const TVector2 < T > & StartPt,
const TVector2 < T > & EndPt,
const TVector2 < T > & QueryPt,
T Tolerance
)
Remarks
Determine which side of the segment the query point lies on. -1 if point is to right of line, +1 if left, and 0 if on line or within tolerance band, or segment was degenerate
Parameters
| Name | Description |
|---|---|
| StartPt | first point of Segment |
| EndPt | second point of Segment |
| QueryPoint | test point |
| Tolerance | tolerance band in which we return 0. Note that using tolerance == 0 is faster because we do not need to get distance of point from segment line. |