Missed a spot with the conversion from pointers to references.

This commit is contained in:
Andrzej Kapolka 2013-05-04 07:59:45 -07:00
parent 34565a4956
commit aff465b17b
2 changed files with 4 additions and 4 deletions

View file

@ -225,7 +225,7 @@ int ViewFrustum::boxInFrustum(const AABox& box) const {
return(result);
}
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);
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

@ -98,7 +98,7 @@ public:
int sphereInFrustum(const glm::vec3& center, float radius) const;
int boxInFrustum(const AABox& box) const;
void computePickRay(float x, float y, glm::vec3* origin, glm::vec3* direction) const;
void computePickRay(float x, float y, glm::vec3& origin, glm::vec3& direction) const;
};