Remove more unnecessary additions.

This commit is contained in:
Mark Peng 2013-07-19 01:00:55 -07:00
parent ceb743a65d
commit a14768bb29
3 changed files with 0 additions and 8 deletions

View file

@ -42,7 +42,6 @@
#include "ViewFrustum.h"
#include "VoxelSystem.h"
#include "Webcam.h"
#include "Plane.h"
class QAction;

View file

@ -364,11 +364,6 @@ bool ViewFrustum::matches(const ViewFrustum& compareTo, bool debug) const {
return result;
}
void ViewFrustum::computeNormalToOffset(glm::vec3& normal) const {
Plane offsetPlane(_offsetPosition, _offsetRight, _offsetUp);
normal = offsetPlane.getNormal();
}
void ViewFrustum::computePickRay(float x, float y, glm::vec3& origin, glm::vec3& direction) const {
origin = _nearTopLeft + x*(_nearTopRight - _nearTopLeft) + y*(_nearBottomLeft - _nearTopLeft);
direction = glm::normalize(origin - _position);

View file

@ -83,8 +83,6 @@ public:
bool matches(const ViewFrustum& compareTo, bool debug = false) const;
bool matches(const ViewFrustum* compareTo, bool debug = false) const { return matches(*compareTo, debug); };
void computeNormalToOffset(glm::vec3& normal) const;
void computePickRay(float x, float y, glm::vec3& origin, glm::vec3& direction) const;
void computeOffAxisFrustum(float& left, float& right, float& bottom, float& top, float& near, float& far,