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
6
namespace
Saga::Geometry
{
18
std::optional<float>
rayBoxCollision
(glm::vec3 rayOrigin, glm::vec3 rayDir, glm::vec3 cornerBotLeft, glm::vec3 cornerTopRight);
19
}
Saga::Geometry::rayBoxCollision
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
Saga::Geometry
Definition:
box.cpp:6
Utils
geometry
box.h
Generated by
1.9.6