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

Defines interface IShape. More...

Go to the source code of this file.

Classes

class  IShape
 Pure virtual base class for different shapes. More...
 

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

Defines 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.h.

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.