aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmath
diff options
context:
space:
mode:
authorAleric Inglewood2010-09-28 03:06:39 +0200
committerMcCabe Maxsted2010-10-01 20:38:10 -0700
commitcf47ba8754b6a8928efed885913ccbca5fad77a8 (patch)
treed96308e9acaa6e3dfc2f2463ba0912e7a3abdba9 /linden/indra/llmath
parentRED-554: SNOW-623: Add support for boost 1.42 (diff)
downloadmeta-impy-cf47ba8754b6a8928efed885913ccbca5fad77a8.zip
meta-impy-cf47ba8754b6a8928efed885913ccbca5fad77a8.tar.gz
meta-impy-cf47ba8754b6a8928efed885913ccbca5fad77a8.tar.bz2
meta-impy-cf47ba8754b6a8928efed885913ccbca5fad77a8.tar.xz
RED-556: SNOW-800: Massively duplicated objects
See http://redmine.imprudenceviewer.org/issues/556
Diffstat (limited to 'linden/indra/llmath')
-rw-r--r--linden/indra/llmath/llcamera.cpp1
-rw-r--r--linden/indra/llmath/llcamera.h9
2 files changed, 1 insertions, 9 deletions
diff --git a/linden/indra/llmath/llcamera.cpp b/linden/indra/llmath/llcamera.cpp
index 0f343bc..e6b6797 100644
--- a/linden/indra/llmath/llcamera.cpp
+++ b/linden/indra/llmath/llcamera.cpp
@@ -684,6 +684,7 @@ void LLCamera::calculateFrustumPlanes(F32 left, F32 right, F32 top, F32 bottom)
684 mLocalPlanes[PLANE_BOTTOM].setVec( a, c, b); 684 mLocalPlanes[PLANE_BOTTOM].setVec( a, c, b);
685 685
686 //calculate center and radius squared of frustum in world absolute coordinates 686 //calculate center and radius squared of frustum in world absolute coordinates
687 static LLVector3 const X_AXIS(1.f, 0.f, 0.f);
687 mFrustCenter = X_AXIS*mFarPlane*0.5f; 688 mFrustCenter = X_AXIS*mFarPlane*0.5f;
688 mFrustCenter = transformToAbsolute(mFrustCenter); 689 mFrustCenter = transformToAbsolute(mFrustCenter);
689 mFrustRadiusSquared = mFarPlane*0.5f; 690 mFrustRadiusSquared = mFarPlane*0.5f;
diff --git a/linden/indra/llmath/llcamera.h b/linden/indra/llmath/llcamera.h
index 23ee115..85b93df 100644
--- a/linden/indra/llmath/llcamera.h
+++ b/linden/indra/llmath/llcamera.h
@@ -56,15 +56,6 @@ const F32 MIN_FAR_PLANE = 0.2f;
56static const F32 MIN_FIELD_OF_VIEW = 5.0f * DEG_TO_RAD; 56static const F32 MIN_FIELD_OF_VIEW = 5.0f * DEG_TO_RAD;
57static const F32 MAX_FIELD_OF_VIEW = 175.f * DEG_TO_RAD; 57static const F32 MAX_FIELD_OF_VIEW = 175.f * DEG_TO_RAD;
58 58
59static const LLVector3 X_AXIS(1.f,0.f,0.f);
60static const LLVector3 Y_AXIS(0.f,1.f,0.f);
61static const LLVector3 Z_AXIS(0.f,0.f,1.f);
62
63static const LLVector3 NEG_X_AXIS(-1.f,0.f,0.f);
64static const LLVector3 NEG_Y_AXIS(0.f,-1.f,0.f);
65static const LLVector3 NEG_Z_AXIS(0.f,0.f,-1.f);
66
67
68// An LLCamera is an LLCoorFrame with a view frustum. 59// An LLCamera is an LLCoorFrame with a view frustum.
69// This means that it has several methods for moving it around 60// This means that it has several methods for moving it around
70// that are inherited from the LLCoordFrame() class : 61// that are inherited from the LLCoordFrame() class :