Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
solverstack
ScalFMM
Commits
72aadd98
Commit
72aadd98
authored
Mar 09, 2017
by
Quentin Khan
Browse files
Fix rotate bug in fuseDistributions
parent
61b27cdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Examples/fuseDistributions.cpp
View file @
72aadd98
...
...
@@ -205,7 +205,7 @@ void rotate(Particle& p, const distribution& dist) {
}
// Rotate around z axis
if
(
dist
.
rot
[
2
]
>
1e-5
||
dist
.
rot
[
2
]
<
-
1e-5
)
{
FReal
alpha
=
dist
.
rot
[
1
];
FReal
alpha
=
dist
.
rot
[
2
];
p
.
pos
[
0
]
=
p
.
pos
[
0
]
*
cos
(
alpha
)
-
p
.
pos
[
1
]
*
sin
(
alpha
);
p
.
pos
[
1
]
=
p
.
pos
[
0
]
*
sin
(
alpha
)
+
p
.
pos
[
1
]
*
cos
(
alpha
);
}
...
...
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