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
a1ffc992
Commit
a1ffc992
authored
Dec 18, 2013
by
COULAUD Olivier
Browse files
New function getPhiIn02PI
parent
96d44b04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Src/Utils/FSpherical.hpp
View file @
a1ffc992
...
...
@@ -52,8 +52,8 @@
class
FSpherical
{
// The attributes of a sphere
FReal
r
;
//!< the radial distance
FReal
theta
;
//!< the inclination angle [0, pi] - colatitude
FReal
phi
;
//!< the azimuth angle [-pi,pi]
$`
- longitude - around z axis
FReal
theta
;
//!< the inclination angle [0, pi] - colatitude
, polar angle
FReal
phi
;
//!< the azimuth angle [-pi,pi] - longitude - around z axis
FReal
cosTheta
;
FReal
sinTheta
;
public:
...
...
@@ -95,9 +95,8 @@ public:
return
theta
;
}
/** Get the azimuth angle [0,2pi]. You should use this method in order to obtain (x,y,z)*/
FReal
getAzimuth
()
const
{
// return (FMath::FPi + phi );
return
(
phi
<
0
?
FMath
::
FPi
*
2.0
+
phi
:
phi
);
FReal
getPhiInO2PI
()
const
{
return
(
phi
<
0
?
FMath
::
FTwoPi
+
phi
:
phi
);
}
/** Get the cos of theta = z / r */
...
...
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