aboutsummaryrefslogtreecommitdiff
path: root/Source/Frustum.cpp
diff options
context:
space:
mode:
authorrelnev <relnev@5198baeb-e213-0410-be47-fc2ff85ca46f>2003-01-08 13:03:38 +0000
committerrelnev <relnev@5198baeb-e213-0410-be47-fc2ff85ca46f>2003-01-08 13:03:38 +0000
commit55e638b22eccb89c9ff026fb8ba0801957ad1a42 (patch)
tree24fb983ea6d6a696435ae5a0492d348ece3aaf93 /Source/Frustum.cpp
parent6ce9f5135f84b2e09fd58bce31d1cee946bb462f (diff)
downloadblackshades-55e638b22eccb89c9ff026fb8ba0801957ad1a42.tar.gz
minor cleanups
git-svn-id: svn://svn.icculus.org/blackshades/trunk@50 5198baeb-e213-0410-be47-fc2ff85ca46f
Diffstat (limited to 'Source/Frustum.cpp')
-rw-r--r--Source/Frustum.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/Frustum.cpp b/Source/Frustum.cpp
index b17d1ce..a2780cb 100644
--- a/Source/Frustum.cpp
+++ b/Source/Frustum.cpp
@@ -78,6 +78,7 @@ int FRUSTUM::
CubeInFrustum(float x, float y, float z, float size) {
int c, c2;
+ c2 = 0;
for(int i=0; i<6; i++) {
c=0;
if(frustum[i][0] * (x-size) + frustum[i][1] * (y-size) + frustum[i][2] * (z-size) + frustum[i][3] > 0)
@@ -110,7 +111,8 @@ int FRUSTUM::
int FRUSTUM::
CubeInFrustum(float x, float y, float z, float size, float height) {
int c, c2;
-
+
+ c2 = 0;
for(int i=0; i<6; i++) {
c=0;
if(frustum[i][0] * (x-size) + frustum[i][1] * (y-height) + frustum[i][2] * (z-size) + frustum[i][3] > 0)
@@ -143,7 +145,8 @@ int FRUSTUM::
int FRUSTUM::
SphereInFrustum(float x, float y, float z, float radius) {
int c2;
-
+
+ c2 = 0;
for(int i=0; i<6; i++) {
if(frustum[i][0] * x + frustum[i][1] * y + frustum[i][2] * z + frustum[i][3] > -1*radius)
c2++;