OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
Public Member Functions | Private Attributes | List of all members
BoundingBox Class Reference

#include <RoomData.h>

Public Member Functions

 BoundingBox (glm::vec3 min, glm::vec3 max)
 
bool inBox (glm::vec3 p)
 
bool inBoxPlane (glm::vec3 p)
 
glm::vec3 getCorner (int i)
 
void display (glm::mat4 VP, glm::vec3 colorLine, glm::vec3 colorDot)
 

Private Attributes

glm::vec3 corner [8]
 

Detailed Description

Definition at line 14 of file RoomData.h.

Constructor & Destructor Documentation

BoundingBox::BoundingBox ( glm::vec3  min,
glm::vec3  max 
)
inline

Definition at line 16 of file RoomData.h.

Member Function Documentation

bool BoundingBox::inBox ( glm::vec3  p)
inline

Definition at line 27 of file RoomData.h.

bool BoundingBox::inBoxPlane ( glm::vec3  p)
inline

Definition at line 32 of file RoomData.h.

glm::vec3 BoundingBox::getCorner ( int  i)
inline

Definition at line 37 of file RoomData.h.

void BoundingBox::display ( glm::mat4  VP,
glm::vec3  colorLine,
glm::vec3  colorDot 
)

Definition at line 16 of file RoomData.cpp.

Member Data Documentation

glm::vec3 BoundingBox::corner[8]
private

Definition at line 46 of file RoomData.h.


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