diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/llmath/v2math.h | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-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/v2math.h')
-rw-r--r-- | linden/indra/llmath/v2math.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/linden/indra/llmath/v2math.h b/linden/indra/llmath/v2math.h index 5a520d2..350079d 100644 --- a/linden/indra/llmath/v2math.h +++ b/linden/indra/llmath/v2math.h | |||
@@ -33,6 +33,7 @@ | |||
33 | #define LL_V2MATH_H | 33 | #define LL_V2MATH_H |
34 | 34 | ||
35 | #include "llmath.h" | 35 | #include "llmath.h" |
36 | #include "v3math.h" | ||
36 | 37 | ||
37 | class LLVector4; | 38 | class LLVector4; |
38 | class LLMatrix3; | 39 | class LLMatrix3; |
@@ -49,9 +50,10 @@ class LLVector2 | |||
49 | 50 | ||
50 | static LLVector2 zero; | 51 | static LLVector2 zero; |
51 | 52 | ||
52 | LLVector2(); // Initializes LLVector2 to (0, 0) | 53 | LLVector2(); // Initializes LLVector2 to (0, 0) |
53 | LLVector2(F32 x, F32 y); // Initializes LLVector2 to (x. y) | 54 | LLVector2(F32 x, F32 y); // Initializes LLVector2 to (x. y) |
54 | LLVector2(const F32 *vec); // Initializes LLVector2 to (vec[0]. vec[1]) | 55 | LLVector2(const F32 *vec); // Initializes LLVector2 to (vec[0]. vec[1]) |
56 | explicit LLVector2(const LLVector3 &vec); // Initializes LLVector2 to (vec[0]. vec[1]) | ||
55 | 57 | ||
56 | // Clears LLVector2 to (0, 0). DEPRECATED - prefer zeroVec. | 58 | // Clears LLVector2 to (0, 0). DEPRECATED - prefer zeroVec. |
57 | void clear(); | 59 | void clear(); |
@@ -137,6 +139,12 @@ inline LLVector2::LLVector2(const F32 *vec) | |||
137 | mV[VY] = vec[VY]; | 139 | mV[VY] = vec[VY]; |
138 | } | 140 | } |
139 | 141 | ||
142 | inline LLVector2::LLVector2(const LLVector3 &vec) | ||
143 | { | ||
144 | mV[VX] = vec.mV[VX]; | ||
145 | mV[VY] = vec.mV[VY]; | ||
146 | } | ||
147 | |||
140 | 148 | ||
141 | // Clear and Assignment Functions | 149 | // Clear and Assignment Functions |
142 | 150 | ||