diff options
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; |