Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
ee3660b4
Commit
ee3660b4
authored
Mar 26, 2013
by
Mario Hlawitschka
Browse files
[FIX] missing include to cmath for std::sqrt (worked so far as it has been included somewhere else)
parent
80959cdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/core/dataHandler/WCreateColorArraysThread.cpp
src/core/dataHandler/WCreateColorArraysThread.cpp
+3
-2
No files found.
src/core/dataHandler/WCreateColorArraysThread.cpp
View file @
ee3660b4
...
...
@@ -23,6 +23,7 @@
//---------------------------------------------------------------------------
#include <vector>
#include <cmath>
#include "WCreateColorArraysThread.h"
...
...
@@ -87,7 +88,7 @@ void WCreateColorArraysThread::threadMain()
if
(
b
<
0.0
)
b
*=
-
1.0
;
float
norm
=
sqrt
(
r
*
r
+
g
*
g
+
b
*
b
);
float
norm
=
std
::
sqrt
(
r
*
r
+
g
*
g
+
b
*
b
);
r
*=
1.0
/
norm
;
g
*=
1.0
/
norm
;
b
*=
1.0
/
norm
;
...
...
@@ -105,7 +106,7 @@ void WCreateColorArraysThread::threadMain()
lasty
=
(
*
m_vertices
)[
pc
+
1
];
lastz
=
(
*
m_vertices
)[
pc
+
2
];
float
norm
=
sqrt
(
rr
*
rr
+
gg
*
gg
+
bb
*
bb
);
float
norm
=
std
::
sqrt
(
rr
*
rr
+
gg
*
gg
+
bb
*
bb
);
rr
*=
1.0
/
norm
;
gg
*=
1.0
/
norm
;
bb
*=
1.0
/
norm
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment