kick
/Users/morten/Programmering/cpp/kick/src/kick/math/frustum.h
00001 //
00002 //  frustum.h
00003 //  KickCPP
00004 //
00005 //  Created by Morten Nobel-Jørgensen on 21/12/13.
00006 //  Copyright (c) 2013 Morten Nobel-Joergensen. All rights reserved.
00007 //
00008 
00009 #pragma once
00010 
00011 #include "glm/glm.hpp"
00012 #include "kick/math/bounds3.h"
00013 
00014 namespace kick {
00015     enum class FrustumIntersection {
00016         Outside,
00017         Inside,
00018         Intersecting
00019     };
00020     
00021     
00027     class Frustum {
00028     public:
00029         FrustumIntersection intersectAabb(Bounds3 bounds);
00030         void extractPlanes(glm::mat4 viewProjectionMatrix, bool normalizePlaneNormals = false);
00031     private:
00032         glm::vec4 planes[6];
00033     };
00034 }
 All Classes Functions Variables