X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FAabb.hh;fp=src%2FMoof%2FAabb.hh;h=0f7bbb9ff74fa2495e6b6582f2515c3b99f7cef2;hp=457d198495e9a358fd40e304b3236730e501af57;hb=25aefe01ef7dbdb603c51411e04b0d6a6107684f;hpb=df541170776dc4ac4f241ca480812bd70bcb6eca diff --git a/src/Moof/Aabb.hh b/src/Moof/Aabb.hh index 457d198..0f7bbb9 100644 --- a/src/Moof/Aabb.hh +++ b/src/Moof/Aabb.hh @@ -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; };