Commit 27eb0693 authored by Antti Soininen's avatar Antti Soininen
Browse files

Code beautification. Re #24860

parent 4945db3c
......@@ -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.;
}
......
......@@ -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;
/**
......
......@@ -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);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment