Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/TIntrRay3OrientedBox3
Description
Find intersection of ray with oriented box Based on GeometricTools Engine implementation: https://www.geometrictools.com/GTE/Mathematics/IntrRay3OrientedBox3.h
| Name | FindIntersection |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Intersection/IntrRay3OrientedBox3.h |
| Include Path | #include "Intersection/IntrRay3OrientedBox3.h" |
static bool FindIntersection
(
const TRay < RealType > & Ray,
const TOrientedBox3 < RealType > & Box,
RealType & RayParamOut
)
true if ray intersects box
Parameters
| Name | Remarks |
|---|---|
| Ray | query ray |
| Box | query box |
| RayParamOut | ray intersect T-value, or TNumericLimits::Max() on miss |