| 
    PCG Lib
    
   Library for procedural content generation 
   | 
 
defines the overall extends of a level in 2d. More...
#include <LevelBoundingBox.h>
Public Member Functions | |
| LevelBoundingBox () | |
| default constructor sets all coordinates to (0,0,0)  More... | |
| LevelBoundingBox (Point3d center, float width, float length) | |
| constructor  More... | |
| LevelBoundingBox (skr::pcg::Room room) | |
| constructor calculates bounding box given a single room  More... | |
| LevelBoundingBox (std::vector< skr::pcg::Room > rooms) | |
| constructor calcualtes overall bounding box of a list of rooms  More... | |
Public Attributes | |
| Point3d | _center | 
| center point  More... | |
| Point3d | _LLB | 
| coordinate of LowerLeftBottom  More... | |
| Point3d | _LRB | 
| coordinate of LowerRightBottom  More... | |
| Point3d | _ULB | 
| coordinate of UpperLeftBottom  More... | |
| Point3d | _URB | 
| coordinate of UpprRightBottom  More... | |
defines the overall extends of a level in 2d.
On a plane in x- and z-axis, as y is considered the height. Height is currently not used, as all rooms of a level are on one plane.
| skr::pcg::LevelBoundingBox::LevelBoundingBox | ( | ) | 
default constructor sets all coordinates to (0,0,0)
| skr::pcg::LevelBoundingBox::LevelBoundingBox | ( | Point3d | center, | 
| float | width, | ||
| float | length | ||
| ) | 
constructor
| center | center point | 
| width | exted in x-axis | 
| length | extend in z-axis | 
| skr::pcg::LevelBoundingBox::LevelBoundingBox | ( | skr::pcg::Room | room | ) | 
constructor calculates bounding box given a single room
| room | room level consists of | 
| skr::pcg::LevelBoundingBox::LevelBoundingBox | ( | std::vector< skr::pcg::Room > | rooms | ) | 
constructor calcualtes overall bounding box of a list of rooms
| rooms | list of rooms the level consists of | 
| Point3d skr::pcg::LevelBoundingBox::_center | 
center point
| Point3d skr::pcg::LevelBoundingBox::_LLB | 
coordinate of LowerLeftBottom
| Point3d skr::pcg::LevelBoundingBox::_LRB | 
coordinate of LowerRightBottom
| Point3d skr::pcg::LevelBoundingBox::_ULB | 
coordinate of UpperLeftBottom
| Point3d skr::pcg::LevelBoundingBox::_URB | 
coordinate of UpprRightBottom
 1.8.18