UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::Geometry::TDistSegment2AxisAlignedBox2< Real > Class Template Reference

#include <DistSegment2AxisAlignedBox2.h>

Public Member Functions

 TDistSegment2AxisAlignedBox2 (const TSegment2< Real > &SegmentIn, const TBox2< Real > &AxisAlignedBoxIn)
 
Real Get ()
 
Real GetSquared ()
 
Real ComputeResult ()
 

Public Attributes

TSegment2< Real > Segment
 
TBox2< Real > AxisAlignedBox
 
Real DistanceSquared = -1.0
 
Real SegmentParameter
 
TVector2< Real > BoxClosest
 
TVector2< Real > SegmentClosest
 

Detailed Description

template<typename Real>
class UE::Geometry::TDistSegment2AxisAlignedBox2< Real >

Compute unsigned distance between 2D segment and 2D axis aligned box

Constructor & Destructor Documentation

◆ TDistSegment2AxisAlignedBox2()

template<typename Real >
UE::Geometry::TDistSegment2AxisAlignedBox2< Real >::TDistSegment2AxisAlignedBox2 ( const TSegment2< Real > &  SegmentIn,
const TBox2< Real > &  AxisAlignedBoxIn 
)
inline

Member Function Documentation

◆ ComputeResult()

template<typename Real >
Real UE::Geometry::TDistSegment2AxisAlignedBox2< Real >::ComputeResult ( )
inline

◆ Get()

template<typename Real >
Real UE::Geometry::TDistSegment2AxisAlignedBox2< Real >::Get ( )
inline

◆ GetSquared()

template<typename Real >
Real UE::Geometry::TDistSegment2AxisAlignedBox2< Real >::GetSquared ( )
inline

Member Data Documentation

◆ AxisAlignedBox

template<typename Real >
TBox2<Real> UE::Geometry::TDistSegment2AxisAlignedBox2< Real >::AxisAlignedBox

◆ BoxClosest

template<typename Real >
TVector2<Real> UE::Geometry::TDistSegment2AxisAlignedBox2< Real >::BoxClosest

◆ DistanceSquared

template<typename Real >
Real UE::Geometry::TDistSegment2AxisAlignedBox2< Real >::DistanceSquared = -1.0

◆ Segment

template<typename Real >
TSegment2<Real> UE::Geometry::TDistSegment2AxisAlignedBox2< Real >::Segment

◆ SegmentClosest

template<typename Real >
TVector2<Real> UE::Geometry::TDistSegment2AxisAlignedBox2< Real >::SegmentClosest

◆ SegmentParameter

template<typename Real >
Real UE::Geometry::TDistSegment2AxisAlignedBox2< Real >::SegmentParameter

The documentation for this class was generated from the following file: