aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmath/v3math.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/llmath/v3math.h
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/llmath/v3math.h')
-rw-r--r--linden/indra/llmath/v3math.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/linden/indra/llmath/v3math.h b/linden/indra/llmath/v3math.h
index ddb5e1f..65932cd 100644
--- a/linden/indra/llmath/v3math.h
+++ b/linden/indra/llmath/v3math.h
@@ -36,6 +36,7 @@
36#include "llmath.h" 36#include "llmath.h"
37 37
38#include "llsd.h" 38#include "llsd.h"
39class LLVector2;
39class LLVector4; 40class LLVector4;
40class LLMatrix3; 41class LLMatrix3;
41class LLVector3d; 42class LLVector3d;
@@ -62,6 +63,7 @@ class LLVector3
62 inline LLVector3(); // Initializes LLVector3 to (0, 0, 0) 63 inline LLVector3(); // Initializes LLVector3 to (0, 0, 0)
63 inline LLVector3(const F32 x, const F32 y, const F32 z); // Initializes LLVector3 to (x. y, z) 64 inline LLVector3(const F32 x, const F32 y, const F32 z); // Initializes LLVector3 to (x. y, z)
64 inline explicit LLVector3(const F32 *vec); // Initializes LLVector3 to (vec[0]. vec[1], vec[2]) 65 inline explicit LLVector3(const F32 *vec); // Initializes LLVector3 to (vec[0]. vec[1], vec[2])
66 explicit LLVector3(const LLVector2 &vec); // Initializes LLVector3 to (vec[0]. vec[1], 0)
65 explicit LLVector3(const LLVector3d &vec); // Initializes LLVector3 to (vec[0]. vec[1], vec[2]) 67 explicit LLVector3(const LLVector3d &vec); // Initializes LLVector3 to (vec[0]. vec[1], vec[2])
66 explicit LLVector3(const LLVector4 &vec); // Initializes LLVector4 to (vec[0]. vec[1], vec[2]) 68 explicit LLVector3(const LLVector4 &vec); // Initializes LLVector4 to (vec[0]. vec[1], vec[2])
67 LLVector3(const LLSD& sd); 69 LLVector3(const LLSD& sd);
@@ -74,6 +76,7 @@ class LLVector3
74 76
75 inline BOOL isFinite() const; // checks to see if all values of LLVector3 are finite 77 inline BOOL isFinite() const; // checks to see if all values of LLVector3 are finite
76 BOOL clamp(F32 min, F32 max); // Clamps all values to (min,max), returns TRUE if data changed 78 BOOL clamp(F32 min, F32 max); // Clamps all values to (min,max), returns TRUE if data changed
79 BOOL clampLength( F32 length_limit ); // Scales vector to limit length to a value
77 80
78 void quantize16(F32 lowerxy, F32 upperxy, F32 lowerz, F32 upperz); // changes the vector to reflect quatization 81 void quantize16(F32 lowerxy, F32 upperxy, F32 lowerz, F32 upperz); // changes the vector to reflect quatization
79 void quantize8(F32 lowerxy, F32 upperxy, F32 lowerz, F32 upperz); // changes the vector to reflect quatization 82 void quantize8(F32 lowerxy, F32 upperxy, F32 lowerz, F32 upperz); // changes the vector to reflect quatization
@@ -147,7 +150,7 @@ class LLVector3
147 150
148 friend std::ostream& operator<<(std::ostream& s, const LLVector3 &a); // Stream a 151 friend std::ostream& operator<<(std::ostream& s, const LLVector3 &a); // Stream a
149 152
150 static BOOL parseVector3(const char* buf, LLVector3* value); 153 static BOOL parseVector3(const std::string& buf, LLVector3* value);
151}; 154};
152 155
153typedef LLVector3 LLSimLocalVec; 156typedef LLVector3 LLSimLocalVec;