Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
shkyera::AABB Struct Reference

#include <AABB.hpp>

Public Member Functions

std::optional< floatintersect (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
 

Member Function Documentation

◆ intersect()

std::optional< float > shkyera::AABB::intersect ( const Ray ray,
const glm::mat4 &  transform 
) const

◆ isInside()

bool shkyera::AABB::isInside ( const glm::mat4 &  aabbTransformMatrix,
const glm::vec3 &  point 
) const

Member Data Documentation

◆ center

glm::vec3 shkyera::AABB::center

◆ extents

glm::vec3 shkyera::AABB::extents

The documentation for this struct was generated from the following files: