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

#include <IntrLine2Triangle2.h>

Public Member Functions

TLine2< Real > GetLine () const
 
TTriangle2< Real > GetTriangle () const
 
void SetLine (const TLine2< Real > &LineIn)
 
void SetTriangle (const TTriangle2< Real > &TriangleIn)
 
bool IsSimpleIntersection ()
 
 TIntrLine2Triangle2 ()
 
 TIntrLine2Triangle2 (TLine2< Real > l, TTriangle2< Real > t)
 
TIntrLine2Triangle2Compute ()
 
bool Find ()
 

Static Public Member Functions

static void TriangleLineRelations (const TVector2< Real > &Origin, const TVector2< Real > &Direction, const TTriangle2< Real > &Tri, TVector< Real > &Dist, FVector3i &Sign, int &Positive, int &Negative, int &Zero, Real Tolerance=TMathUtil< Real >::ZeroTolerance)
 
static bool GetInterval (const TVector2< Real > &Origin, const TVector2< Real > &Direction, const TTriangle2< Real > &Tri, const TVector< Real > &Dist, const FVector3i &Sign, TVector2< Real > &param)
 

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

TLine2< Real > Line
 
TTriangle2< Real > Triangle
 

Detailed Description

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

Compute intersection between 2D Line and 2D Triangle

Constructor & Destructor Documentation

◆ TIntrLine2Triangle2() [1/2]

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

◆ TIntrLine2Triangle2() [2/2]

template<typename Real >
UE::Geometry::TIntrLine2Triangle2< Real >::TIntrLine2Triangle2 ( TLine2< Real >  l,
TTriangle2< Real >  t 
)
inline

Member Function Documentation

◆ Compute()

template<typename Real >
TIntrLine2Triangle2 * UE::Geometry::TIntrLine2Triangle2< Real >::Compute ( )
inline

◆ Find()

template<typename Real >
bool UE::Geometry::TIntrLine2Triangle2< Real >::Find ( )
inline

◆ GetInterval()

template<typename Real >
static bool UE::Geometry::TIntrLine2Triangle2< Real >::GetInterval ( const TVector2< Real > &  Origin,
const TVector2< Real > &  Direction,
const TTriangle2< Real > &  Tri,
const TVector< Real > &  Dist,
const FVector3i Sign,
TVector2< Real > &  param 
)
inlinestatic

◆ GetLine()

template<typename Real >
TLine2< Real > UE::Geometry::TIntrLine2Triangle2< Real >::GetLine ( ) const
inline

◆ GetTriangle()

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

◆ IsSimpleIntersection()

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

◆ SetLine()

template<typename Real >
void UE::Geometry::TIntrLine2Triangle2< Real >::SetLine ( const TLine2< Real > &  LineIn)
inline

◆ SetTriangle()

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

◆ TriangleLineRelations()

template<typename Real >
static void UE::Geometry::TIntrLine2Triangle2< Real >::TriangleLineRelations ( const TVector2< Real > &  Origin,
const TVector2< Real > &  Direction,
const TTriangle2< Real > &  Tri,
TVector< Real > &  Dist,
FVector3i Sign,
int &  Positive,
int &  Negative,
int &  Zero,
Real  Tolerance = TMathUtil<Real>::ZeroTolerance 
)
inlinestatic

Member Data Documentation

◆ Line

template<typename Real >
TLine2<Real> UE::Geometry::TIntrLine2Triangle2< Real >::Line
protected

◆ Param0

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

◆ Param1

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

◆ Point0

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

◆ Point1

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

◆ Quantity

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

◆ Result

◆ Triangle

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

◆ Type


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