BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
RippleSawtoothNet Class Reference

Description

Definition at line 25 of file RippleSawtoothNet.h.

Inheritance diagram for RippleSawtoothNet:
[legend]
Collaboration diagram for RippleSawtoothNet:
[legend]

Public Member Functions

 RippleSawtoothNet (double length, double width, double height, double asymmetry)
 
 ~RippleSawtoothNet () override
 
virtual std::vector< R3 > vertices () const
 Retrieves a list of the vertices constituting this concrete shape. More...
 

Static Public Attributes

static const size_t N_Circle = 24
 

Protected Attributes

std::vector< R3 > m_vertices
 List of vertices initialized during construction. More...
 

Constructor & Destructor Documentation

◆ RippleSawtoothNet()

RippleSawtoothNet::RippleSawtoothNet ( double  length,
double  width,
double  height,
double  asymmetry 
)

Definition at line 17 of file RippleSawtoothNet.cpp.

18 {
19  double ymax = width / 2.0 - asymmetry;
20  double ymin = -width / 2.0 - asymmetry;
21  m_vertices.resize(6);
22  m_vertices[0] = R3(length / 2.0, ymax, 0.0);
23  m_vertices[1] = R3(length / 2.0, ymin, 0.0);
24  m_vertices[2] = R3(length / 2.0, 0.0, height);
25  m_vertices[3] = R3(-length / 2.0, ymax, 0.0);
26  m_vertices[4] = R3(-length / 2.0, ymin, 0.0);
27  m_vertices[5] = R3(-length / 2.0, 0.0, height);
28 }
std::vector< R3 > m_vertices
List of vertices initialized during construction.
Definition: IShape3D.h:42

References IShape3D::m_vertices.

◆ ~RippleSawtoothNet()

RippleSawtoothNet::~RippleSawtoothNet ( )
overridedefault

Member Function Documentation

◆ vertices()

std::vector< R3 > IShape3D::vertices ( ) const
virtualinherited

Retrieves a list of the vertices constituting this concrete shape.

Definition at line 23 of file IShape3D.cpp.

24 {
25  return m_vertices;
26 }

References IShape3D::m_vertices.

Member Data Documentation

◆ m_vertices

std::vector<R3> IShape3D::m_vertices
protectedinherited

◆ N_Circle

const size_t IShape3D::N_Circle = 24
staticinherited

The documentation for this class was generated from the following files: