Saga
Saga Game Engine
Loading...
Searching...
No Matches
box.h
Go to the documentation of this file.
1#pragma once
2
3#include <glm/vec3.hpp>
4#include <optional>
5
6namespace Saga::Geometry {
18 std::optional<float> rayBoxCollision(glm::vec3 rayOrigin, glm::vec3 rayDir, glm::vec3 cornerBotLeft, glm::vec3 cornerTopRight);
19}
std::optional< float > rayBoxCollision(glm::vec3 rayOrigin, glm::vec3 rayDir, glm::vec3 corner0, glm::vec3 corner1)
Find the intersection time t between a ray and a box.
Definition: box.cpp:7
Definition: box.cpp:6