TSegment2::WhichSide

Determine which side of the segment the query point lies on

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/SegmentTypes.h

Include

#include "SegmentTypes.h"

Syntax

static int WhichSide
(
    const FVector2< T > & StartPt,
    const FVector2< T > & EndPt,
    const FVector2< T > & QueryPt,
    T Tolerance
)

Remarks

Determine which side of the segment the query point lies on

Returns

+1 if point is to right of line, -1 if left, and 0 if on line or within tolerance band

Parameters

Parameter

Description

StartPt

first point of Segment

EndPt

second point of Segment

QueryPoint

test point

Tolerance

tolerance band in which we return 0

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss