Bayeux  3.4.1
Core Foundation library for SuperNEMO
quadrangle_random_tools.h
Go to the documentation of this file.
1 /* Author(s) : Francois Mauger <mauger@lpccaen.in2p3.fr>
3  * Creation date: 2012-09-26
4  * Last modified: 2014-04-09
5  *
6  * License:
7  *
8  * Description:
9  *
10  * Algorithm to randomize points on the surface of a quadrangle
11  *
12  * History:
13  *
14  *
15  */
16 
17 #ifndef GENVTX_QUADRANGLE_RANDOM_TOOLS_H
18 #define GENVTX_QUADRANGLE_RANDOM_TOOLS_H 1
19 
20 // Third party:
21 // - Bayeux/geomtools
22 #include <geomtools/utils.h>
23 // - Bayeux/mygsl
24 #include <mygsl/rng.h>
25 
26 namespace genvtx {
27 
30  const geomtools::vector_3d & vtx1_,
31  const geomtools::vector_3d & vtx2_,
32  const geomtools::vector_3d & vtx3_,
33  mygsl::rng & random_,
34  double & area012_, double & area230_);
35 
36 } // end of namespace genvtx
37 
38 #endif // GENVTX_QUADRANGLE_RANDOM_TOOLS_H
39 
40 /*
41 ** Local Variables: --
42 ** mode: c++ --
43 ** c-file-style: "gnu" --
44 ** tab-width: 2 --
45 ** End: --
46 */
geomtools::vector_3d quadrangle_random_surface(const geomtools::vector_3d &vtx0_, const geomtools::vector_3d &vtx1_, const geomtools::vector_3d &vtx2_, const geomtools::vector_3d &vtx3_, mygsl::rng &random_, double &area012_, double &area230_)
Top-level namespace of the Bayeux/genvtx module library.
Definition: box_model_vg.h:32
CLHEP::Hep3Vector vector_3d
Alias for the CLHEP 3D-vector class.
Definition: clhep.h:63
Pseudo random number generator.
Definition: rng.h:53