Saga
Saga Game Engine
Loading...
Searching...
No Matches
box.cpp File Reference
#include "box.h"
#include <glm/geometric.hpp>
#include <algorithm>
Include dependency graph for box.cpp:

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.