BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Implements default methods of interface IShape3D. More...
Go to the source code of this file.
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... | |
Implements default methods of interface IShape3D.
Definition in file IShape3D.cpp.
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().