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

#include <Intersector1.h>

Public Member Functions

 TIntersector1 (RealType u0, RealType u1, RealType v0, RealType v1)
 
 TIntersector1 (const TInterval1< RealType > &u, const TInterval1< RealType > &v)
 
bool Test () const
 
RealType GetIntersection (int i)
 
bool Find ()
 

Public Attributes

TInterval1< RealType > U
 
TInterval1< RealType > V
 
int NumIntersections = 0
 

Detailed Description

template<typename RealType>
class UE::Geometry::TIntersector1< RealType >

TIntersector1 computes the intersection of one-dimensional intervals [u0,u1] and [v0,v1]. The end points of the input intervals must be ordered u0 <= u1 and v0 <= v1. Infinite and degenerate intervals are allowed.

Constructor & Destructor Documentation

◆ TIntersector1() [1/2]

template<typename RealType >
UE::Geometry::TIntersector1< RealType >::TIntersector1 ( RealType  u0,
RealType  u1,
RealType  v0,
RealType  v1 
)
inline

◆ TIntersector1() [2/2]

template<typename RealType >
UE::Geometry::TIntersector1< RealType >::TIntersector1 ( const TInterval1< RealType > &  u,
const TInterval1< RealType > &  v 
)
inline

Member Function Documentation

◆ Find()

template<typename RealType >
bool UE::Geometry::TIntersector1< RealType >::Find ( )
inline

Calculate the intersection interval

Returns
true if the intervals intersect

◆ GetIntersection()

template<typename RealType >
RealType UE::Geometry::TIntersector1< RealType >::GetIntersection ( int  i)
inline
Returns
first or second point of intersection interval

◆ Test()

template<typename RealType >
bool UE::Geometry::TIntersector1< RealType >::Test ( ) const
inline

Fast check to see if intervals intersect, but does not calculate intersection interval

Returns
true if intervals intersect

Member Data Documentation

◆ NumIntersections

template<typename RealType >
int UE::Geometry::TIntersector1< RealType >::NumIntersections = 0

Number of intersections found. 0: intervals do not overlap 1: intervals are touching at a single point 2: intervals intersect in an interval

◆ U

template<typename RealType >
TInterval1<RealType> UE::Geometry::TIntersector1< RealType >::U

First interval

◆ V

template<typename RealType >
TInterval1<RealType> UE::Geometry::TIntersector1< RealType >::V

Second interval


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