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

#include <IntrSegment2Triangle2.h>

Public Member Functions

bool IsSimpleIntersection ()
 
TSegment2< Real > GetSegment () const
 
TTriangle2< Real > GetTriangle () const
 
void SetSegment (const TSegment2< Real > &SegmentIn)
 
void SetTriangle (const TTriangle2< Real > &TriangleIn)
 
 TIntrSegment2Triangle2 ()
 
 TIntrSegment2Triangle2 (TSegment2< Real > Seg, TTriangle2< Real > Tri)
 
TIntrSegment2Triangle2Compute (Real Tolerance=TMathUtil< Real >::ZeroTolerance)
 
bool Find (Real Tolerance=TMathUtil< Real >::ZeroTolerance)
 

Public Attributes

int Quantity = 0
 
EIntersectionResult Result = EIntersectionResult::NotComputed
 
EIntersectionType Type = EIntersectionType::Empty
 
TVector2< Real > Point0
 
TVector2< Real > Point1
 
double Param0
 
double Param1
 

Protected Attributes

TSegment2< Real > Segment
 
TTriangle2< Real > Triangle
 

Detailed Description

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

Compute intersection between 2D segment and 2D triangle. Note that if Segment.Extent is zero, this will test if the Segment Center is in the triangle.

Constructor & Destructor Documentation

◆ TIntrSegment2Triangle2() [1/2]

template<typename Real >
UE::Geometry::TIntrSegment2Triangle2< Real >::TIntrSegment2Triangle2 ( )
inline

◆ TIntrSegment2Triangle2() [2/2]

template<typename Real >
UE::Geometry::TIntrSegment2Triangle2< Real >::TIntrSegment2Triangle2 ( TSegment2< Real >  Seg,
TTriangle2< Real >  Tri 
)
inline

Member Function Documentation

◆ Compute()

template<typename Real >
TIntrSegment2Triangle2 * UE::Geometry::TIntrSegment2Triangle2< Real >::Compute ( Real  Tolerance = TMathUtil<Real>::ZeroTolerance)
inline

◆ Find()

template<typename Real >
bool UE::Geometry::TIntrSegment2Triangle2< Real >::Find ( Real  Tolerance = TMathUtil<Real>::ZeroTolerance)
inline

◆ GetSegment()

template<typename Real >
TSegment2< Real > UE::Geometry::TIntrSegment2Triangle2< Real >::GetSegment ( ) const
inline

◆ GetTriangle()

template<typename Real >
TTriangle2< Real > UE::Geometry::TIntrSegment2Triangle2< Real >::GetTriangle ( ) const
inline

◆ IsSimpleIntersection()

template<typename Real >
bool UE::Geometry::TIntrSegment2Triangle2< Real >::IsSimpleIntersection ( )
inline

◆ SetSegment()

template<typename Real >
void UE::Geometry::TIntrSegment2Triangle2< Real >::SetSegment ( const TSegment2< Real > &  SegmentIn)
inline

◆ SetTriangle()

template<typename Real >
void UE::Geometry::TIntrSegment2Triangle2< Real >::SetTriangle ( const TTriangle2< Real > &  TriangleIn)
inline

Member Data Documentation

◆ Param0

template<typename Real >
double UE::Geometry::TIntrSegment2Triangle2< Real >::Param0

◆ Param1

template<typename Real >
double UE::Geometry::TIntrSegment2Triangle2< Real >::Param1

◆ Point0

template<typename Real >
TVector2<Real> UE::Geometry::TIntrSegment2Triangle2< Real >::Point0

◆ Point1

template<typename Real >
TVector2<Real> UE::Geometry::TIntrSegment2Triangle2< Real >::Point1

◆ Quantity

template<typename Real >
int UE::Geometry::TIntrSegment2Triangle2< Real >::Quantity = 0

◆ Result

◆ Segment

template<typename Real >
TSegment2<Real> UE::Geometry::TIntrSegment2Triangle2< Real >::Segment
protected

◆ Triangle

template<typename Real >
TTriangle2<Real> UE::Geometry::TIntrSegment2Triangle2< Real >::Triangle
protected

◆ Type


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