![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
Functions | |
| template<typename RealType > | |
| bool | RayTriangleTest (const TVector< RealType > &RayOrigin, const TVector< RealType > &RayDirection, const TVector< RealType > &V0, const TVector< RealType > &V1, const TVector< RealType > &V2) |
| template<typename RealType > | |
| bool | LineSphereTest (const TVector< RealType > &LineOrigin, const TVector< RealType > &LineDirection, const TVector< RealType > &SphereCenter, RealType SphereRadius) |
| template<typename RealType > | |
| bool | LineSphereIntersection (const TVector< RealType > &LineOrigin, const TVector< RealType > &LineDirection, const TVector< RealType > &SphereCenter, RealType SphereRadius, FLinearIntersection &ResultOut) |
| template<typename RealType > | |
| FLinearIntersection | LineSphereIntersection (const TVector< RealType > &LineOrigin, const TVector< RealType > &LineDirection, const TVector< RealType > &SphereCenter, RealType SphereRadius) |
| template<typename RealType > | |
| bool | RaySphereTest (const TVector< RealType > &RayOrigin, const TVector< RealType > &RayDirection, const TVector< RealType > &SphereCenter, RealType SphereRadius) |
| template<typename RealType > | |
| bool | RaySphereIntersection (const TVector< RealType > &RayOrigin, const TVector< RealType > &RayDirection, const TVector< RealType > &SphereCenter, RealType SphereRadius, FLinearIntersection &Result) |
| template<typename RealType > | |
| FLinearIntersection | RaySphereIntersection (const TVector< RealType > &RayOrigin, const TVector< RealType > &RayDirection, const TVector< RealType > &SphereCenter, RealType SphereRadius) |
| template<typename RealType > | |
| bool | RayCircleIntersection (const TVector< RealType > &RayOrigin, const TVector< RealType > &RayDirection, const TVector< RealType > &CircleCenter, RealType CircleRadius, const TVector< RealType > &CircleNormal, FLinearIntersection &Result) |
IntersectionUtil contains functions to compute intersections between geometric objects
| FLinearIntersection IntersectionUtil::LineSphereIntersection | ( | const TVector< RealType > & | LineOrigin, |
| const TVector< RealType > & | LineDirection, | ||
| const TVector< RealType > & | SphereCenter, | ||
| RealType | SphereRadius | ||
| ) |
| bool IntersectionUtil::LineSphereIntersection | ( | const TVector< RealType > & | LineOrigin, |
| const TVector< RealType > & | LineDirection, | ||
| const TVector< RealType > & | SphereCenter, | ||
| RealType | SphereRadius, | ||
| FLinearIntersection & | ResultOut | ||
| ) |
Intersect line with sphere and return intersection info (# hits, ray parameters)
| bool IntersectionUtil::LineSphereTest | ( | const TVector< RealType > & | LineOrigin, |
| const TVector< RealType > & | LineDirection, | ||
| const TVector< RealType > & | SphereCenter, | ||
| RealType | SphereRadius | ||
| ) |
Test if line intersects sphere
| bool IntersectionUtil::RayCircleIntersection | ( | const TVector< RealType > & | RayOrigin, |
| const TVector< RealType > & | RayDirection, | ||
| const TVector< RealType > & | CircleCenter, | ||
| RealType | CircleRadius, | ||
| const TVector< RealType > & | CircleNormal, | ||
| FLinearIntersection & | Result | ||
| ) |
Intersect ray with circle and return intersection info (# hits, ray parameters)
| FLinearIntersection IntersectionUtil::RaySphereIntersection | ( | const TVector< RealType > & | RayOrigin, |
| const TVector< RealType > & | RayDirection, | ||
| const TVector< RealType > & | SphereCenter, | ||
| RealType | SphereRadius | ||
| ) |
| bool IntersectionUtil::RaySphereIntersection | ( | const TVector< RealType > & | RayOrigin, |
| const TVector< RealType > & | RayDirection, | ||
| const TVector< RealType > & | SphereCenter, | ||
| RealType | SphereRadius, | ||
| FLinearIntersection & | Result | ||
| ) |
Intersect ray with sphere and return intersection info (# hits, ray parameters)
| bool IntersectionUtil::RaySphereTest | ( | const TVector< RealType > & | RayOrigin, |
| const TVector< RealType > & | RayDirection, | ||
| const TVector< RealType > & | SphereCenter, | ||
| RealType | SphereRadius | ||
| ) |