|
BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Defines interface IShape3D. More...
Go to the source code of this file.
Classes | |
| class | IShape3D |
| Abstract base class for different shapes. More... | |
Macros | |
| #define | BORNAGAIN_SAMPLE_SHAPES_ISHAPE_H |
Functions | |
| 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. More... | |
| std::vector< kvector_t > | RectangleVertices (double length, double width, double z) |
| Helper functions to construct lists of vertices. More... | |
Defines interface IShape3D.
Definition in file IShape3D.h.
| #define BORNAGAIN_SAMPLE_SHAPES_ISHAPE_H |
Definition at line 21 of file IShape3D.h.
| 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 IShape3D.cpp.
References M_PI, and IShape3D::N_Circle.
Referenced by DoubleEllipse::DoubleEllipse(), and TruncatedEllipsoid::TruncatedEllipsoid().
| 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 IShape3D.cpp.
Referenced by Box::Box().