TTriangle2::IsInsideOrOn_Oriented

More robust (because it doesn't multiply orientation test results) inside-triangle test for oriented triangles only (the code early-outs at the first 'outside' edge, which only works if the triangle is oriented as expected)

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

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

Include

#include "TriangleTypes.h"

Syntax

int IsInsideOrOn_Oriented
(
    const FVector2< RealType > & QueryPoint
) const

Remarks

More robust (because it doesn't multiply orientation test results) inside-triangle test for oriented triangles only (the code early-outs at the first 'outside' edge, which only works if the triangle is oriented as expected)

Returns

1 if outside, -1 if inside, 0 if on boundary

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