Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/TTriangle2 > API/Runtime/GeometryCore/TTriangle2/IsInsideOrOn_Oriented
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/TriangleTypes.h |
| Include | #include "TriangleTypes.h" |
int IsInsideOrOn_Oriented
(
const TVector2 < RealType > & QueryPoint,
RealType Tolerance
) 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) 1 if outside, -1 if inside, 0 if on boundary