BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
IShape.cpp File Reference

Implements default methods of interface IShape. More...

Go to the source code of this file.

Functions

std::vector< kvector_tRectangleVertices (double length, double width, double z)
 Helper functions to construct lists of vertices. More...
 
std::vector< kvector_tEllipseVertices (double r_x, double r_y, double z)
 Generate vertices of centered ellipse with given semi-axes at height z.
 

Detailed Description

Implements default methods of interface IShape.

Homepage:\n http://www.bornagainproject.org
License:\n GNU General Public License v3 or higher (see COPYING)
Authors
Scientific Computing Group at MLZ (see CITATION, AUTHORS)

Definition in file IShape.cpp.

Function Documentation

◆ RectangleVertices()

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.