![]() |
Shkyera Engine
Easy to use, game engine for Python
|
#include <AABB.hpp>
Public Member Functions | |
std::optional< float > | intersect (const Ray &ray, const glm::mat4 &transform) const |
bool | isInside (const glm::mat4 &aabbTransformMatrix, const glm::vec3 &point) const |
Public Attributes | |
glm::vec3 | center |
glm::vec3 | extents |
std::optional< float > shkyera::AABB::intersect | ( | const Ray & | ray, |
const glm::mat4 & | transform | ||
) | const |
bool shkyera::AABB::isInside | ( | const glm::mat4 & | aabbTransformMatrix, |
const glm::vec3 & | point | ||
) | const |
glm::vec3 shkyera::AABB::center |
glm::vec3 shkyera::AABB::extents |