Jpp 21.0.0
the software that should make you happy
Loading...
Searching...
No Matches
JGEOMETRY3D::JOmega3S Struct Reference

Group of direction sets. More...

#include <JOmega3D.hh>

Inheritance diagram for JGEOMETRY3D::JOmega3S:
std::vector< JOmega3S_t >

Public Member Functions

 JOmega3S (const JOmega3D &omega, const JOmega3D &group)
 Constructor.
 
 JOmega3S (const JOmega3D &omega, const size_t N)
 Constructor.
 
 JOmega3S (const double grid, const size_t N)
 Constructor.
 

Detailed Description

Group of direction sets.

Definition at line 195 of file JOmega3D.hh.

Constructor & Destructor Documentation

◆ JOmega3S() [1/3]

JGEOMETRY3D::JOmega3S::JOmega3S ( const JOmega3D & omega,
const JOmega3D & group )
inline

Constructor.

Parameters
omegaset of directions
groupset of directions

Definition at line 204 of file JOmega3D.hh.

206 {
207 for (JOmega3D::const_iterator i = group.begin(); i != group.end(); ++i) {
208 this->push_back({*i, {}});
209 }
210
211 for (JOmega3D::const_iterator i = omega.begin(); i != omega.end(); ++i) {
212
213 const int index = group.find(*i);
214
215 (*this)[index].push_back(*i);
216 }
217 }

◆ JOmega3S() [2/3]

JGEOMETRY3D::JOmega3S::JOmega3S ( const JOmega3D & omega,
const size_t N )
inline

Constructor.

Parameters
omegaset of directions
Nnumber of groups

Definition at line 226 of file JOmega3D.hh.

227 :
228 JOmega3S(omega, JOmega3D(JOmega3D::getAngle(N)))
229 {}
static double getAngle(const size_t N)
Get approximate angular spacing given number of directions.
Definition JOmega3D.hh:173
JOmega3S(const JOmega3D &omega, const JOmega3D &group)
Constructor.
Definition JOmega3D.hh:204

◆ JOmega3S() [3/3]

JGEOMETRY3D::JOmega3S::JOmega3S ( const double grid,
const size_t N )
inline

Constructor.

Parameters
gridangular spacing [rad]
Nnumber of groups

Definition at line 238 of file JOmega3D.hh.

239 :
240 JOmega3S(JOmega3D(grid), N)
241 {}

The documentation for this struct was generated from the following file: