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/v4math.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/v4math.cpp')
-rw-r--r-- | linden/indra/llmath/v4math.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linden/indra/llmath/v4math.cpp b/linden/indra/llmath/v4math.cpp index 26a47ff..34b8f07 100644 --- a/linden/indra/llmath/v4math.cpp +++ b/linden/indra/llmath/v4math.cpp | |||
@@ -113,8 +113,8 @@ F32 angle_between( const LLVector4& a, const LLVector4& b ) | |||
113 | { | 113 | { |
114 | LLVector4 an = a; | 114 | LLVector4 an = a; |
115 | LLVector4 bn = b; | 115 | LLVector4 bn = b; |
116 | an.normVec(); | 116 | an.normalize(); |
117 | bn.normVec(); | 117 | bn.normalize(); |
118 | F32 cosine = an * bn; | 118 | F32 cosine = an * bn; |
119 | F32 angle = (cosine >= 1.0f) ? 0.0f : | 119 | F32 angle = (cosine >= 1.0f) ? 0.0f : |
120 | (cosine <= -1.0f) ? F_PI : | 120 | (cosine <= -1.0f) ? F_PI : |
@@ -126,8 +126,8 @@ BOOL are_parallel(const LLVector4 &a, const LLVector4 &b, F32 epsilon) | |||
126 | { | 126 | { |
127 | LLVector4 an = a; | 127 | LLVector4 an = a; |
128 | LLVector4 bn = b; | 128 | LLVector4 bn = b; |
129 | an.normVec(); | 129 | an.normalize(); |
130 | bn.normVec(); | 130 | bn.normalize(); |
131 | F32 dot = an * bn; | 131 | F32 dot = an * bn; |
132 | if ( (1.0f - fabs(dot)) < epsilon) | 132 | if ( (1.0f - fabs(dot)) < epsilon) |
133 | return TRUE; | 133 | return TRUE; |