Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/Intersection
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Intersection/IntrTriangle2AxisAlignedBox2.h |
| Include | #include "Intersection/IntrTriangle2AxisAlignedBox2.h" |
Syntax
template<typename Real>
class TIntrTriangle2AxisAlignedBox2
Remarks
Compute intersection between a 2D triangle and a 2D axis-aligned box
Variables
| Type | Name | Description | |
|---|---|---|---|
| TAxisAlignedBox2< Real > | Box | ||
| bool | bTriangleIsOriented | ||
| TTriangle2< Real > | Triangle | Input. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| 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) | |||
TIntrTriangle2AxisAlignedBox2
(
TTriangle2< Real > Triangle, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| TTriangle2< Real > | GetBox () |
||
| TTriangle2< Real > | GetTriangle () |
||
| bool | |||
| void | SetBox
(
const TAxisAlignedBox2< Real >& BoxIn |
||
| void | SetTriangle
(
const TTriangle2< Real >& TriangleIn |
||
| void | SetTriangleOriented
(
const bool bIsOrientedIn |
||
| bool | Test () |