15 #ifndef BORNAGAIN_SAMPLE_HARDPARTICLE_PRISM6_H
16 #define BORNAGAIN_SAMPLE_HARDPARTICLE_PRISM6_H
27 Prism6(std::vector<double> P);
30 std::string
className() const final {
return "Prism6"; }
32 std::vector<ParaMeta>
parDefs() const final
34 return {{
"BaseEdge",
"nm",
"edge length of hexagonal base", 0, +
INF, 0},
35 {
"Height",
"nm",
"height", 0, +
INF, 0}};
A prism based on a regular hexagonal.
std::string className() const final
Returns the class name, to be hard-coded in each leaf class that inherits from INode.
Prism6(double base_edge, double height)
const double & m_base_edge
std::vector< ParaMeta > parDefs() const final
Returns the parameter definitions, to be hard-coded in each leaf class.
double height() const override
Prism6 * clone() const override
Returns a clone of this ISampleNode object.