/Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseGizmos/GizmoElementTorus.h
LineTrace approximates ray-torus intersection by intersecting the ray with the plane in which the torus lies, then determining a hit point closest to the linear circle defined by torus center and torus outer radius. If the torus lies at a glancing angle, the ray-torus intersection is performed against cylinders approximating the shape of the torus.
virtual [FInputRayHit](API\Runtime\InteractiveToolsFramework\FInputRayHit) LineTrace ( const [UGizmoViewContext](API\Runtime\InteractiveToolsFramework\BaseGizmos\UGizmoViewContext) * ViewContext, const [FLineTraceTraversalState](API\Runtime\InteractiveToolsFramework\BaseGizmos\UGizmoElementBase\FLineTraceTraver-) & LineTraceState, const FVector & RayOrigin, const FVector & RayDirection )