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 | BottomZ (const std::vector< R3 > &vertices, const IRotation *rotation) |
Calculates the z-coordinate of the lowest vertex after rotation. More... | |
double | TopZ (const std::vector< R3 > &vertices, const IRotation *rotation) |
Calculates the z-coordinate of the highest vertex after rotation. More... | |
double PolyhedralUtil::BottomZ | ( | const std::vector< R3 > & | vertices, |
const IRotation * | rotation | ||
) |
Calculates the z-coordinate of the lowest vertex after rotation.
Definition at line 21 of file PolyhedralUtil.cpp.
References ASSERT, and BaseUtils::algo::min_value().
Referenced by IFormFactor::bottomZ(), IFormFactorPolyhedron::bottomZ(), and IFormFactorPrism::bottomZ().
double PolyhedralUtil::TopZ | ( | const std::vector< R3 > & | vertices, |
const IRotation * | rotation | ||
) |
Calculates the z-coordinate of the highest vertex after rotation.
Definition at line 30 of file PolyhedralUtil.cpp.
References ASSERT, and BaseUtils::algo::max_value().
Referenced by IFormFactor::topZ(), IFormFactorPolyhedron::topZ(), and IFormFactorPrism::topZ().