11namespace DataObjects {
58 double wavenumber = 2 * M_PI / wavelength;
67 double wavenumber = 2 * M_PI / wavelength;
71 double thetaLower)
override {
87 while ((quad.
at(0).
X() > quad.
at(3).
X()) || (quad.
at(0).
Y() > quad.
at(1).
Y())) {
class CalculateReflectometryKiKf: Calculation type for converting to ki or kf given a theta value (in...
void setTwoTheta(double twoTheta) override
Set the final theta value from the detector twoTheta angle.
CalculateReflectometryKiKf(int version)
Constructor.
double calculateDim1(double wavelength) const override
Executes the calculation to determine Kf.
double calculateDim0(double wavelength) const override
Executes the calculation to determine Ki.
void updateThetaIncident(double thetaIncident) override
Setter for the incident theta value require for the calculation.
Mantid::Geometry::Quadrilateral createQuad(double lamUpper, double lamLower, double thetaUpper, double thetaLower) override
void setThetaFinal(double thetaFinal) override
Setter for the final theta value require for the calculation.
Provides a common interface to Reflectometry Transform calculators.
const double to_radians_factor
A ConvexPolygon with only 4 vertices.
virtual void shiftVertexesClockwise()
Shifts the vertexes in a clockwise manner.
const Kernel::V2D & at(const size_t index) const override
Bounds-checked index access.
Implements a 2-dimensional vector embedded in a 3D space, i.e.
double Y() const
Y position.
double X() const
X position.
Helper class which provides the Collimation Length for SANS instruments.