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

int WhichSide
(
    const FVector2< T > & QueryPoint,
    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

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