core/geom/intersections.hpp file

Class cubos::core::geom::Intersections.

Namespaces

namespace cubos
Cubos libraries namespace.
namespace cubos::core
Core namespace.
namespace cubos::core::geom
Geometry module.

Classes

struct cubos::core::geom::Intersection
Contains info regarding an intersection between shapes.

Functions

auto intersects(const Box& box1, const glm::mat4& localToWorld1, const Box& box2, const glm::mat4& localToWorld2, Intersection& intersect) -> CUBOS_CORE_API bool
Computes the intersection between two box shapes.
auto sutherlandHodgmanClipping(const std::vector<glm::vec3>& inputPolygon, int numClipPlanes, const cubos::core::geom::Plane* clipPlanes, bool removeNotClipToPlane) -> CUBOS_CORE_API std::vector<glm::vec3>
Performs the Sutherland-Hodgman Clipping algorithm.
auto planeEdgeIntersection(const cubos::core::geom::Plane& plane, const glm::vec3& start, const glm::vec3& end, glm::vec3& outPoint) -> CUBOS_CORE_API bool
Compute the intersection between a plane and an edge.