]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Aabb.hh
refactoring the scene class
[chaz/yoink] / src / Moof / Aabb.hh
index 457d198495e9a358fd40e304b3236730e501af57..0f7bbb9ff74fa2495e6b6582f2515c3b99f7cef2 100644 (file)
@@ -64,7 +64,7 @@ struct Aabb : public Cullable, public Drawable
                init(a, b);
        }
 
-       inline void init(const Vector3& a, const Vector3& b)
+       void init(const Vector3& a, const Vector3& b)
        {
                if (a[0] < b[0])
                {
@@ -98,7 +98,7 @@ struct Aabb : public Cullable, public Drawable
                }
        }
 
-       inline Vector3 getCenter() const
+       Vector3 getCenter() const
        {
                return Vector3((min[0] + max[0]) / 2.0,
                                           (min[1] + max[1]) / 2.0,
@@ -107,7 +107,7 @@ struct Aabb : public Cullable, public Drawable
 
        void getOctant(Aabb& octant, int num) const;
 
-       inline Plane getPlaneXY() const
+       Plane getPlaneXY() const
        {
                Plane plane;
                plane.normal = Vector3(0.0, 0.0, 1.0);
@@ -115,7 +115,7 @@ struct Aabb : public Cullable, public Drawable
                return plane;
        }
 
-       inline Plane getPlaneXZ() const
+       Plane getPlaneXZ() const
        {
                Plane plane;
                plane.normal = Vector3(0.0, 1.0, 0.0);
@@ -123,7 +123,7 @@ struct Aabb : public Cullable, public Drawable
                return plane;
        }
 
-       inline Plane getPlaneYZ() const
+       Plane getPlaneYZ() const
        {
                Plane plane;
                plane.normal = Vector3(1.0, 0.0, 0.0);
@@ -136,7 +136,7 @@ struct Aabb : public Cullable, public Drawable
        void encloseVertices(const Vector3 vertices[], unsigned count);
 
        void draw(Scalar alpha = 0.0) const;
-       bool isVisible(const Camera& cam) const;
+       bool isVisible(const Frustum& frustum) const;
 };
 
 
This page took 0.026268 seconds and 4 git commands to generate.