Saga
Saga Game Engine
Loading...
Searching...
No Matches
cylinder.h
Go to the documentation of this file.
1#pragma once
2
3#include <glm/vec2.hpp>
4#include <glm/vec3.hpp>
5#include <optional>
6
7namespace Saga::Geometry {
8
21 glm::vec3 detectAACylinderCylinderCollision(float height0, float radius0, glm::vec3 pos0, float height1, float radius1, glm::vec3 pos1);
22
42 std::optional<std::tuple<float, glm::vec3>> movingCylinderCylinderIntersection(float height0, float radius0, glm::vec3 pos0, float height1, float radius1, glm::vec3 pos1, glm::vec3 dir);
43}
glm::vec3 detectAACylinderCylinderCollision(float height0, float radius0, glm::vec3 pos0, float height1, float radius1, glm::vec3 pos1)
Find the minimum translation vector for two axis-aligned cylinders. If the two cylinders are not pene...
Definition: cylinder.cpp:9
std::optional< std::tuple< float, glm::vec3 > > movingCylinderCylinderIntersection(float height0, float radius0, glm::vec3 pos0, float height1, float radius1, glm::vec3 pos1, glm::vec3 dir)
Find the earliest time between intersection of two cylinders, one of which is moving....
Definition: cylinder.cpp:25
Definition: box.cpp:6