X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fmoof%2Ffrustum.hh;fp=src%2Fmoof%2Ffrustum.hh;h=c603a97884c056e1fc408bf7bbace8305728d8f4;hp=1e44701402577b26c2edc29c3c1dc948a717d471;hb=574af38ed616d1adfa5e6ce35f67cda1f707f89d;hpb=6c9943707d4f33035830eba0587a61a34eaecbc2 diff --git a/src/moof/frustum.hh b/src/moof/frustum.hh index 1e44701..c603a97 100644 --- a/src/moof/frustum.hh +++ b/src/moof/frustum.hh @@ -1,13 +1,11 @@ -/*] Copyright (c) 2009-2010, Charles McGarvey [************************** +/*] Copyright (c) 2009-2011, Charles McGarvey [***************************** **] All rights reserved. * -* vi:ts=4 sw=4 tw=75 -* * Distributable under the terms and conditions of the 2-clause BSD license; * see the file COPYING for a complete text of the license. * -**************************************************************************/ +*****************************************************************************/ #ifndef _MOOF_FRUSTUM_HH_ #define _MOOF_FRUSTUM_HH_ @@ -20,17 +18,14 @@ #include #include - namespace moof { - template class aabb; template class sphere; - /** - * A six-sided volume for representing the space visible by a position - * looking outward. + * A six-sided volume for representing the space visible by a position looking + * outward. */ class frustum { @@ -38,8 +33,8 @@ public: enum collision { - outside = 0, - inside = 1, + outside = 0, + inside = 1, intersecting = 2 }; @@ -56,18 +51,16 @@ public: void init(const matrix4& modelview, const matrix4& projection); void init(const matrix4& modelview, scalar fovy, scalar aspect, - scalar abutting, scalar distant); + scalar abutting, scalar distant); collision contains(const aabb<3>& aabb) const; collision contains(const sphere<3>& sphere) const; - private: plane planes_[6]; // left, right, bottom, top, near, far }; - } // namespace moof #endif // _MOOF_FRUSTUM_HH_