Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/Intersection > API/Runtime/GeometryCore/Intersection/IntersectionUtil__RaySphereInter-
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Intersection/IntersectionUtil.h |
| Include | #include "Intersection/IntersectionUtil.h" |
namespace IntersectionUtil
{
template<typename RealType>
bool IntersectionUtil::RaySphereIntersection
(
const TVector < RealType > & RayOrigin,
const TVector < RealType > & RayDirection,
const TVector < RealType > & SphereCenter,
RealType SphereRadius,
FLinearIntersection & Result
)
}
Remarks
Intersect ray with sphere and return intersection info (# hits, ray parameters) true if ray intersects sphere