Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
27eb0693
Commit
27eb0693
authored
Mar 01, 2019
by
Antti Soininen
Browse files
Code beautification. Re #24860
parent
4945db3c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Framework/DataObjects/src/Peak.cpp
View file @
27eb0693
...
...
@@ -449,7 +449,7 @@ double Peak::getDSpacing() const {
double
two_theta
;
try
{
two_theta
=
detDir
.
angle
(
beamDir
);
}
catch
(
std
::
runtime_error
&
)
{
}
catch
(
std
::
runtime_error
&
)
{
two_theta
=
0.
;
}
...
...
Framework/Kernel/inc/MantidKernel/V3D.h
View file @
27eb0693
...
...
@@ -196,7 +196,9 @@ public:
* @param other :: The V3D to compare against
* @returns True if the vectors are different
*/
constexpr
bool
operator
!=
(
const
V3D
&
other
)
const
{
return
!
(
this
->
operator
==
(
other
));
}
constexpr
bool
operator
!=
(
const
V3D
&
other
)
const
{
return
!
(
this
->
operator
==
(
other
));
}
/**
compare
...
...
@@ -228,7 +230,8 @@ public:
// Access
// Setting x, y and z values
void
spherical
(
const
double
R
,
const
double
theta
,
const
double
phi
)
noexcept
;
void
spherical_rad
(
const
double
R
,
const
double
polar
,
const
double
azimuth
)
noexcept
;
void
spherical_rad
(
const
double
R
,
const
double
polar
,
const
double
azimuth
)
noexcept
;
void
azimuth_polar_SNS
(
const
double
R
,
const
double
azimuth
,
const
double
polar
)
noexcept
;
/**
...
...
Framework/Kernel/src/V3D.cpp
View file @
27eb0693
...
...
@@ -56,7 +56,8 @@ namespace Kernel {
@param phi :: The phi value (in degrees) = the azimuthal angle, where 0 points
along +X and rotates counter-clockwise in the XY plane
*/
void
V3D
::
spherical
(
const
double
R
,
const
double
theta
,
const
double
phi
)
noexcept
{
void
V3D
::
spherical
(
const
double
R
,
const
double
theta
,
const
double
phi
)
noexcept
{
constexpr
double
deg2rad
=
M_PI
/
180.0
;
spherical_rad
(
R
,
theta
*
deg2rad
,
phi
*
deg2rad
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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