Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/Distance
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Distance/DistSegment2AxisAlignedBox2.h |
| Include | #include "Distance/DistSegment2AxisAlignedBox2.h" |
Syntax
template<typename Real>
class TDistSegment2AxisAlignedBox2
Remarks
Compute unsigned distance between 2D segment and 2D axis aligned box
Variables
| Type | Name | Description | |
|---|---|---|---|
| TBox2< Real > | AxisAlignedBox | ||
| TVector2< Real > | BoxClosest | ||
| Real | DistanceSquared | Output. | |
| TSegment2< Real > | Segment | Input. | |
| TVector2< Real > | SegmentClosest | ||
| Real | SegmentParameter |
Constructors
| Type | Name | Description | |
|---|---|---|---|
TDistSegment2AxisAlignedBox2
(
const TSegment2< Real >& SegmentIn, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| Real | |||
| Real | Get () |
||
| Real | GetSquared () |