Saga
Saga Game Engine
Loading...
Searching...
No Matches
box.h File Reference
#include <glm/vec3.hpp>
#include <optional>
Include dependency graph for box.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Saga
 
namespace  Saga::Geometry
 

Functions

std::optional< float > Saga::Geometry::rayBoxCollision (glm::vec3 rayOrigin, glm::vec3 rayDir, glm::vec3 cornerBotLeft, glm::vec3 cornerTopRight)
 Find the intersection time t between a ray and a box.