Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
AABB.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <Math/Ray.hpp>
4#include <glm/glm.hpp>
5
6namespace shkyera {
7
8struct AABB {
9 glm::vec3 center;
10 glm::vec3 extents;
11
12 std::optional<float> intersect(const Ray& ray, const glm::mat4& transform) const;
13 bool isInside(const glm::mat4& aabbTransformMatrix, const glm::vec3& point) const;
14};
15
16} // namespace shkyera
Definition Asset.hpp:6
Definition AABB.hpp:8
std::optional< float > intersect(const Ray &ray, const glm::mat4 &transform) const
Definition AABB.cpp:9
glm::vec3 extents
Definition AABB.hpp:10
glm::vec3 center
Definition AABB.hpp:9
bool isInside(const glm::mat4 &aabbTransformMatrix, const glm::vec3 &point) const
Definition AABB.cpp:47
Definition Clock.hpp:9
Definition Ray.hpp:7