IntersectRaySphere#

inline bool IntersectRaySphere(
const Point3 &sphereOrigin,
float sphereRadius,
const Point3 &rayOrigin,
const Vec3 &rayDir,
float &t,
Vec3 *hitNormal = nullptr,
)#