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

Namespaces

namespace  Saga
 
namespace  Saga::Geometry
 

Functions

glm::vec3 Saga::Geometry::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 penetrating, then return the zero vector.
 
std::optional< std::tuple< float, glm::vec3 > > Saga::Geometry::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. It must be the case that the two cylinders are not penetrating at the start.