diff options
author | Jacek Antonelli | 2008-08-15 23:44:54 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:54 -0500 |
commit | b2afb8800bb033a04bb3ecdf0363068d56648ef1 (patch) | |
tree | 3568129b5bbddb47cd39d622b4137a8fbff4abaf /linden/indra/llmath/v4math.h | |
parent | Second Life viewer sources 1.14.0.1 (diff) | |
download | meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.zip meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.gz meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.bz2 meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.xz |
Second Life viewer sources 1.15.0.2
Diffstat (limited to 'linden/indra/llmath/v4math.h')
-rw-r--r-- | linden/indra/llmath/v4math.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/linden/indra/llmath/v4math.h b/linden/indra/llmath/v4math.h index f768ba7..f3c2ccc 100644 --- a/linden/indra/llmath/v4math.h +++ b/linden/indra/llmath/v4math.h | |||
@@ -4,6 +4,7 @@ | |||
4 | * | 4 | * |
5 | * Copyright (c) 2000-2007, Linden Research, Inc. | 5 | * Copyright (c) 2000-2007, Linden Research, Inc. |
6 | * | 6 | * |
7 | * Second Life Viewer Source Code | ||
7 | * The source code in this file ("Source Code") is provided by Linden Lab | 8 | * The source code in this file ("Source Code") is provided by Linden Lab |
8 | * to you under the terms of the GNU General Public License, version 2.0 | 9 | * to you under the terms of the GNU General Public License, version 2.0 |
9 | * ("GPL"), unless you have obtained a separate licensing agreement | 10 | * ("GPL"), unless you have obtained a separate licensing agreement |
@@ -45,7 +46,8 @@ class LLVector4 | |||
45 | public: | 46 | public: |
46 | F32 mV[LENGTHOFVECTOR4]; | 47 | F32 mV[LENGTHOFVECTOR4]; |
47 | LLVector4(); // Initializes LLVector4 to (0, 0, 0, 1) | 48 | LLVector4(); // Initializes LLVector4 to (0, 0, 0, 1) |
48 | explicit LLVector4(const F32 *vec); // Initializes LLVector4 to (vec[0]. vec[1], vec[2], 1) | 49 | explicit LLVector4(const F32 *vec); // Initializes LLVector4 to (vec[0]. vec[1], vec[2], vec[3]) |
50 | explicit LLVector4(const F64 *vec); // Initialized LLVector4 to ((F32) vec[0], (F32) vec[1], (F32) vec[3], (F32) vec[4]); | ||
49 | explicit LLVector4(const LLVector3 &vec); // Initializes LLVector4 to (vec, 1) | 51 | explicit LLVector4(const LLVector3 &vec); // Initializes LLVector4 to (vec, 1) |
50 | explicit LLVector4(const LLVector3 &vec, F32 w); // Initializes LLVector4 to (vec, w) | 52 | explicit LLVector4(const LLVector3 &vec, F32 w); // Initializes LLVector4 to (vec, w) |
51 | LLVector4(F32 x, F32 y, F32 z); // Initializes LLVector4 to (x. y, z, 1) | 53 | LLVector4(F32 x, F32 y, F32 z); // Initializes LLVector4 to (x. y, z, 1) |
@@ -155,6 +157,14 @@ inline LLVector4::LLVector4(const F32 *vec) | |||
155 | mV[VW] = vec[VW]; | 157 | mV[VW] = vec[VW]; |
156 | } | 158 | } |
157 | 159 | ||
160 | inline LLVector4::LLVector4(const F64 *vec) | ||
161 | { | ||
162 | mV[VX] = (F32) vec[VX]; | ||
163 | mV[VY] = (F32) vec[VY]; | ||
164 | mV[VZ] = (F32) vec[VZ]; | ||
165 | mV[VW] = (F32) vec[VW]; | ||
166 | } | ||
167 | |||
158 | inline LLVector4::LLVector4(const LLVector3 &vec) | 168 | inline LLVector4::LLVector4(const LLVector3 &vec) |
159 | { | 169 | { |
160 | mV[VX] = vec.mV[VX]; | 170 | mV[VX] = vec.mV[VX]; |