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

#include <IntrRay3Triangle3.h>

Public Member Functions

 TIntrRay3Triangle3 (const RayType &RayIn, const TTriangle3< Real > &TriangleIn)
 
bool Test ()
 
bool Find ()
 

Static Public Member Functions

static bool TestIntersection (const TWatertightRay3< Real > &InRay, const TTriangle3< Real > &InTriangle, EIntersectionType &OutIntersectionType)
 
static bool TestIntersection (const TRay< Real > &InRay, const TTriangle3< Real > &InTriangle, EIntersectionType &OutIntersectionType)
 
static bool FindIntersection (const TRay< Real > &InRay, const TTriangle3< Real > &InTriangle, Real &OutRayParameter, FVector3d &OutTriangleBaryCoords, EIntersectionType &OutIntersectionType)
 
static bool FindIntersection (const TWatertightRay3< Real > &InRay, const TTriangle3< Real > &InTriangle, Real &OutRayParameter, FVector3d &OutTriangleBaryCoords, EIntersectionType &OutIntersectionType)
 

Public Attributes

RayType Ray
 
TTriangle3< Real > Triangle
 
Real RayParameter
 
FVector3d TriangleBaryCoords
 
EIntersectionType IntersectionType
 

Detailed Description

template<typename Real, typename RayType = TRay<Real>>
class UE::Geometry::TIntrRay3Triangle3< Real, RayType >

Compute intersection between 3D ray and 3D triangle

Constructor & Destructor Documentation

◆ TIntrRay3Triangle3()

template<typename Real , typename RayType = TRay<Real>>
UE::Geometry::TIntrRay3Triangle3< Real, RayType >::TIntrRay3Triangle3 ( const RayType RayIn,
const TTriangle3< Real > &  TriangleIn 
)
inline

Member Function Documentation

◆ Find()

template<typename Real , typename RayType = TRay<Real>>
bool UE::Geometry::TIntrRay3Triangle3< Real, RayType >::Find ( )
inline

◆ FindIntersection() [1/2]

template<typename Real , typename RayType = TRay<Real>>
static bool UE::Geometry::TIntrRay3Triangle3< Real, RayType >::FindIntersection ( const TRay< Real > &  InRay,
const TTriangle3< Real > &  InTriangle,
Real &  OutRayParameter,
FVector3d OutTriangleBaryCoords,
EIntersectionType OutIntersectionType 
)
inlinestatic

Find intersection point

Returns
true if ray intersects triangle

◆ FindIntersection() [2/2]

template<typename Real , typename RayType = TRay<Real>>
static bool UE::Geometry::TIntrRay3Triangle3< Real, RayType >::FindIntersection ( const TWatertightRay3< Real > &  InRay,
const TTriangle3< Real > &  InTriangle,
Real &  OutRayParameter,
FVector3d OutTriangleBaryCoords,
EIntersectionType OutIntersectionType 
)
inlinestatic

◆ Test()

template<typename Real , typename RayType = TRay<Real>>
bool UE::Geometry::TIntrRay3Triangle3< Real, RayType >::Test ( )
inline
Returns
true if ray intersects triangle

◆ TestIntersection() [1/2]

template<typename Real , typename RayType = TRay<Real>>
static bool UE::Geometry::TIntrRay3Triangle3< Real, RayType >::TestIntersection ( const TRay< Real > &  InRay,
const TTriangle3< Real > &  InTriangle,
EIntersectionType OutIntersectionType 
)
inlinestatic

◆ TestIntersection() [2/2]

template<typename Real , typename RayType = TRay<Real>>
static bool UE::Geometry::TIntrRay3Triangle3< Real, RayType >::TestIntersection ( const TWatertightRay3< Real > &  InRay,
const TTriangle3< Real > &  InTriangle,
EIntersectionType OutIntersectionType 
)
inlinestatic

Member Data Documentation

◆ IntersectionType

template<typename Real , typename RayType = TRay<Real>>
EIntersectionType UE::Geometry::TIntrRay3Triangle3< Real, RayType >::IntersectionType

◆ Ray

template<typename Real , typename RayType = TRay<Real>>
RayType UE::Geometry::TIntrRay3Triangle3< Real, RayType >::Ray

◆ RayParameter

template<typename Real , typename RayType = TRay<Real>>
Real UE::Geometry::TIntrRay3Triangle3< Real, RayType >::RayParameter

◆ Triangle

template<typename Real , typename RayType = TRay<Real>>
TTriangle3<Real> UE::Geometry::TIntrRay3Triangle3< Real, RayType >::Triangle

◆ TriangleBaryCoords

template<typename Real , typename RayType = TRay<Real>>
FVector3d UE::Geometry::TIntrRay3Triangle3< Real, RayType >::TriangleBaryCoords

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