diff options
author | Rider Linden <rider@lindenlab.com> | 2018-06-07 10:24:29 -0700 |
---|---|---|
committer | Rider Linden <rider@lindenlab.com> | 2018-06-07 10:24:29 -0700 |
commit | 363f7f84a149c0bc4fe21df80aead821f02a7ff0 (patch) | |
tree | 4a944250c44512b70e60a21b0c572ae3d4ea5ac6 /indra/llmath | |
parent | 7f0c4cb9891bda63c3c475c4c28d1b00dbc51998 (diff) |
Validation fixes.
Diffstat (limited to 'indra/llmath')
-rw-r--r-- | indra/llmath/v3color.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/indra/llmath/v3color.h b/indra/llmath/v3color.h index 41dbdb8cd5..43910a1bbe 100644 --- a/indra/llmath/v3color.h +++ b/indra/llmath/v3color.h @@ -100,22 +100,22 @@ public: const LLColor3& operator=(const LLColor4 &a); - LL_FORCE_INLINE LLColor3 divide(const LLColor3 &col2)
- {
- return LLColor3(
- mV[0] / col2.mV[0],
- mV[1] / col2.mV[1],
- mV[2] / col2.mV[2] );
- }
-
- LL_FORCE_INLINE LLColor3 color_norm()
- {
- F32 l = length();
- return LLColor3(
- mV[0] / l,
- mV[1] / l,
- mV[2] / l );
- }
+ LL_FORCE_INLINE LLColor3 divide(const LLColor3 &col2) + { + return LLColor3( + mV[0] / col2.mV[0], + mV[1] / col2.mV[1], + mV[2] / col2.mV[2] ); + } + + LL_FORCE_INLINE LLColor3 color_norm() + { + F32 l = length(); + return LLColor3( + mV[0] / l, + mV[1] / l, + mV[2] / l ); + } friend std::ostream& operator<<(std::ostream& s, const LLColor3 &a); // Print a friend LLColor3 operator+(const LLColor3 &a, const LLColor3 &b); // Return vector a + b |