Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Math > API/Runtime/Core/Math/FMath > API/Runtime/Core/Math/FMath/LineSphereIntersection
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
| Include | #include "Math/UnrealMathUtility.h" |
template<typename FReal>
static bool LineSphereIntersection
(
const UE::Math::TVector < FReal > & Start,
const UE::Math::TVector < FReal > & Dir,
FReal Length,
const UE::Math::TVector < FReal > & Origin,
FReal Radius
)
Remarks
Determines whether a line intersects a sphere.