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/v3dmath.h | |
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/v3dmath.h')
-rw-r--r-- | linden/indra/llmath/v3dmath.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/linden/indra/llmath/v3dmath.h b/linden/indra/llmath/v3dmath.h index 60757ba..9bd80b8 100644 --- a/linden/indra/llmath/v3dmath.h +++ b/linden/indra/llmath/v3dmath.h | |||
@@ -83,8 +83,9 @@ class LLVector3d | |||
83 | BOOL clamp(const F64 min, const F64 max); // Clamps all values to (min,max), returns TRUE if data changed | 83 | BOOL clamp(const F64 min, const F64 max); // Clamps all values to (min,max), returns TRUE if data changed |
84 | BOOL abs(); // sets all values to absolute value of original value (first octant), returns TRUE if changed | 84 | BOOL abs(); // sets all values to absolute value of original value (first octant), returns TRUE if changed |
85 | 85 | ||
86 | inline const LLVector3d& clearVec(); // Clears LLVector3d to (0, 0, 0, 1) | 86 | inline const LLVector3d& clearVec(); // Clears LLVector3d to (0, 0, 0, 1) |
87 | inline const LLVector3d& zeroVec(); // Zero LLVector3d to (0, 0, 0, 0) | 87 | inline const LLVector3d& setZero(); // Zero LLVector3d to (0, 0, 0, 0) |
88 | inline const LLVector3d& zeroVec(); // deprecated | ||
88 | inline const LLVector3d& setVec(const F64 x, const F64 y, const F64 z); // Sets LLVector3d to (x, y, z, 1) | 89 | inline const LLVector3d& setVec(const F64 x, const F64 y, const F64 z); // Sets LLVector3d to (x, y, z, 1) |
89 | inline const LLVector3d& setVec(const LLVector3d &vec); // Sets LLVector3d to vec | 90 | inline const LLVector3d& setVec(const LLVector3d &vec); // Sets LLVector3d to vec |
90 | inline const LLVector3d& setVec(const F64 *vec); // Sets LLVector3d to vec | 91 | inline const LLVector3d& setVec(const F64 *vec); // Sets LLVector3d to vec |
@@ -198,6 +199,14 @@ inline const LLVector3d& LLVector3d::clearVec(void) | |||
198 | return (*this); | 199 | return (*this); |
199 | } | 200 | } |
200 | 201 | ||
202 | inline const LLVector3d& LLVector3d::setZero(void) | ||
203 | { | ||
204 | mdV[0] = 0.f; | ||
205 | mdV[1] = 0.f; | ||
206 | mdV[2] = 0.f; | ||
207 | return (*this); | ||
208 | } | ||
209 | |||
201 | inline const LLVector3d& LLVector3d::zeroVec(void) | 210 | inline const LLVector3d& LLVector3d::zeroVec(void) |
202 | { | 211 | { |
203 | mdV[0] = 0.f; | 212 | mdV[0] = 0.f; |