#include <glm/vec3.hpp>
#include <glm/vec2.hpp>
#include <optional>
Go to the source code of this file.
|
std::optional< float > | Saga::Geometry::rayTriangleIntersection (const glm::vec3 &origin, const glm::vec3 &rayDirection, Triangle triangle) |
| Find the intersection time t where a ray and triangle intersects. Does not detect intersections to the back side of the triangle.
|
|
glm::vec3 | Saga::Geometry::getClosestPoint (const glm::vec3 pointPos, Triangle triangle) |
| Find the closest point between a point and a triangle.
|
|