BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
Functions | |
double | coordinateFromBinf (double value, const IAxis &axis) |
Transforms bin-fraction-coordinate into axis coordinate. More... | |
void | coordinatesFromBinf (double &x, double &y, const Frame &frame) |
Transforms x,y coordinate from bin-fraction-coordinates to Datafield's axes coordinates. More... | |
void | coordinatesToBinf (double &x, double &y, const Frame &frame) |
Transforms x,y coordinate from Datafield axes coordinates to bin-fraction-coordinates. More... | |
double | coordinateToBinf (double coordinate, const IAxis &axis) |
Transforms coordinate on axis into the bin-fraction-coordinate. More... | |
double FramUtil::coordinateFromBinf | ( | double | value, |
const IAxis & | axis | ||
) |
Transforms bin-fraction-coordinate into axis coordinate.
Definition at line 34 of file FrameUtil.cpp.
References IAxis::bin(), Bin1D::binSize(), Bin1D::m_lower, Bin1D::m_upper, and IAxis::size().
Referenced by coordinatesFromBinf().
void FramUtil::coordinatesFromBinf | ( | double & | x, |
double & | y, | ||
const Frame & | frame | ||
) |
Transforms x,y coordinate from bin-fraction-coordinates to Datafield's axes coordinates.
Definition at line 59 of file FrameUtil.cpp.
References coordinateFromBinf(), Frame::xAxis(), and Frame::yAxis().
void FramUtil::coordinatesToBinf | ( | double & | x, |
double & | y, | ||
const Frame & | frame | ||
) |
Transforms x,y coordinate from Datafield axes coordinates to bin-fraction-coordinates.
Definition at line 53 of file FrameUtil.cpp.
References coordinateToBinf(), Frame::xAxis(), and Frame::yAxis().
double FramUtil::coordinateToBinf | ( | double | coordinate, |
const IAxis & | axis | ||
) |
Transforms coordinate on axis into the bin-fraction-coordinate.
Definition at line 26 of file FrameUtil.cpp.
References IAxis::bin(), Bin1D::binSize(), IAxis::findClosestIndex(), and Bin1D::m_lower.
Referenced by coordinatesToBinf().