BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Go to the source code of this file.
Classes | |
class | IShape |
Functions | |
std::vector< kvector_t > | RectangleVertices (double length, double width, double z) |
std::vector< kvector_t > | EllipseVertices (double r_x, double r_y, double z) |
Defines interface IShape.
Definition in file IShape.h.
std::vector<kvector_t> RectangleVertices | ( | double | length, |
double | width, | ||
double | z | ||
) |
Helper functions to construct lists of vertices.
Generate vertices of centered rectangle at height z
Definition at line 28 of file IShape.cpp.
References anonymous_namespace{BoxCompositionBuilder.cpp}::length, and anonymous_namespace{BoxCompositionBuilder.cpp}::width.
Referenced by Box::Box().
std::vector<kvector_t> EllipseVertices | ( | double | r_x, |
double | r_y, | ||
double | z | ||
) |
Generate vertices of centered ellipse with given semi-axes at height z.
Definition at line 37 of file IShape.cpp.
References M_PI, and IShape::N_Circle.
Referenced by DoubleEllipse::DoubleEllipse(), and TruncatedEllipsoid::TruncatedEllipsoid().