Navigation
API > API/Runtime > API/Runtime/GeometryCore
Compute intersection between a 2D triangle and a 2D axis-aligned box
| Name | TIntrTriangle2AxisAlignedBox2 |
| Type | class |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Intersection/IntrTriangle2AxisAlignedBox2.h |
| Include Path | #include "Intersection/IntrTriangle2AxisAlignedBox2.h" |
Syntax
template<typename Real>
class TIntrTriangle2AxisAlignedBox2
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Output TODO: Unlike other TIntrPrim2Prim2 classes, this only computes the Boolean yes/no Test() But in the future we should add the option to Compute() the intersection polygon as well (e.g. refer to IntrTriangle2Triangle.h) | Intersection/IntrTriangle2AxisAlignedBox2.h | ||
TIntrTriangle2AxisAlignedBox2
(
TTriangle2< Real > Triangle, |
Intersection/IntrTriangle2AxisAlignedBox2.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TTriangle2< Real > GetBox() |
Intersection/IntrTriangle2AxisAlignedBox2.h | ||
TTriangle2< Real > GetTriangle() |
Intersection/IntrTriangle2AxisAlignedBox2.h | ||
bool IsTriangleOriented() |
Intersection/IntrTriangle2AxisAlignedBox2.h | ||
void SetBox
(
const TAxisAlignedBox2< Real >& BoxIn |
Intersection/IntrTriangle2AxisAlignedBox2.h | ||
void SetTriangle
(
const TTriangle2< Real >& TriangleIn |
Intersection/IntrTriangle2AxisAlignedBox2.h | ||
void SetTriangleOriented
(
const bool bIsOrientedIn |
Intersection/IntrTriangle2AxisAlignedBox2.h | ||
bool Test() |
Intersection/IntrTriangle2AxisAlignedBox2.h |