aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmath/v3math.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/llmath/v3math.cpp16
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
175const 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
183const 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
175const LLVector3& LLVector3::setVec(const LLVector3d &vec) 191const LLVector3& LLVector3::setVec(const LLVector3d &vec)
176{ 192{
177 mV[0] = (F32)vec.mdV[0]; 193 mV[0] = (F32)vec.mdV[0];