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" |
static int IsInsideOrOn_Oriented
&40;
const TVector2< RealType > & A,
const TVector2< RealType > & B,
const TVector2< RealType > & C,
const TVector2< RealType > & QueryPoint
&41;
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