diff options
author | Jacek Antonelli | 2008-08-15 23:45:42 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:42 -0500 |
commit | ce28e056c20bf2723f565bbf464b87781ec248a2 (patch) | |
tree | ef7b0501c4de4b631a916305cbc2a5fdc125e52d /linden/indra/llmath/v3math.cpp | |
parent | Second Life viewer sources 1.19.1.4b (diff) | |
download | meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.zip meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.gz meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.bz2 meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.xz |
Second Life viewer sources 1.20.2
Diffstat (limited to 'linden/indra/llmath/v3math.cpp')
-rw-r--r-- | linden/indra/llmath/v3math.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/linden/indra/llmath/v3math.cpp b/linden/indra/llmath/v3math.cpp index 34cce06..bbe460f 100644 --- a/linden/indra/llmath/v3math.cpp +++ b/linden/indra/llmath/v3math.cpp | |||
@@ -172,6 +172,22 @@ LLVector3 LLVector3::scaledVec(const LLVector3& vec) const | |||
172 | return ret; | 172 | return ret; |
173 | } | 173 | } |
174 | 174 | ||
175 | const LLVector3& LLVector3::set(const LLVector3d &vec) | ||
176 | { | ||
177 | mV[0] = (F32)vec.mdV[0]; | ||
178 | mV[1] = (F32)vec.mdV[1]; | ||
179 | mV[2] = (F32)vec.mdV[2]; | ||
180 | return (*this); | ||
181 | } | ||
182 | |||
183 | const LLVector3& LLVector3::set(const LLVector4 &vec) | ||
184 | { | ||
185 | mV[0] = vec.mV[0]; | ||
186 | mV[1] = vec.mV[1]; | ||
187 | mV[2] = vec.mV[2]; | ||
188 | return (*this); | ||
189 | } | ||
190 | |||
175 | const LLVector3& LLVector3::setVec(const LLVector3d &vec) | 191 | const LLVector3& LLVector3::setVec(const LLVector3d &vec) |
176 | { | 192 | { |
177 | mV[0] = (F32)vec.mdV[0]; | 193 | mV[0] = (F32)vec.mdV[0]; |