<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>DFNgen: generatingPoints.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">DFNgen
   &#160;<span id="projectnumber">2.0</span>
   </div>
   <div id="projectbrief">DFN Model Generator</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('generating_points_8h.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">generatingPoints.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="structures_8h_source.html">structures.h</a>&quot;</code><br />
<code>#include &lt;vector&gt;</code><br />
<code>#include &lt;random&gt;</code><br />
<code>#include &quot;<a class="el" href="distributions_8h_source.html">distributions.h</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for generatingPoints.h:</div>
<div class="dyncontent">
<div class="center"><img src="generating_points_8h__incl.png" border="0" usemap="#generating_points_8h" alt=""/></div>
<map name="generating_points_8h" id="generating_points_8h">
<area shape="rect" id="node2" href="structures_8h.html" title="structures.h" alt="" coords="73,155,164,181"/>
<area shape="rect" id="node6" href="distributions_8h.html" title="distributions.h" alt="" coords="153,80,257,107"/>
<area shape="rect" id="node7" href="exp_dist_8h.html" title="expDist.h" alt="" coords="240,155,317,181"/>
</map>
</div>
</div><div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="generating_points_8h__dep__incl.png" border="0" usemap="#generating_points_8hdep" alt=""/></div>
<map name="generating_points_8hdep" id="generating_points_8hdep">
<area shape="rect" id="node2" href="computational_geometry_8cpp.html" title="computationalGeometry.cpp" alt="" coords="5,80,195,107"/>
<area shape="rect" id="node3" href="_d_f_nmain_8cpp.html" title="DFNmain.cpp" alt="" coords="219,80,323,107"/>
<area shape="rect" id="node4" href="fracture_estimating_8cpp.html" title="fractureEstimating.cpp" alt="" coords="347,80,501,107"/>
<area shape="rect" id="node5" href="generating_points_8cpp.html" title="generatingPoints.cpp" alt="" coords="525,80,672,107"/>
<area shape="rect" id="node6" href="insert_shape_8cpp.html" title="insertShape.cpp" alt="" coords="697,80,815,107"/>
<area shape="rect" id="node7" href="insert_user_ell_8cpp.html" title="insertUserEll.cpp" alt="" coords="840,80,963,107"/>
<area shape="rect" id="node8" href="output_8cpp.html" title="output.cpp" alt="" coords="987,80,1071,107"/>
<area shape="rect" id="node9" href="read_input_8cpp.html" title="readInput.cpp" alt="" coords="1096,80,1200,107"/>
</map>
</div>
</div>
<p><a href="generating_points_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a22991db6b15a6147e875c27a84402d4c"><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="struct_point.html">Point</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="generating_points_8h.html#a22991db6b15a6147e875c27a84402d4c">discretizeLineOfIntersection</a> (double *pt1, double *pt2, double dist)</td></tr>
<tr class="separator:a22991db6b15a6147e875c27a84402d4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb658797956583856890236f9d922f72"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="struct_point.html">Point</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="generating_points_8h.html#adb658797956583856890236f9d922f72">lineFunction3D</a> (double *v, double *point, double t)</td></tr>
<tr class="separator:adb658797956583856890236f9d922f72"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f7b981bd314f565407a2db0358bf81b"><td class="memItemLeft" align="right" valign="top">double *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="generating_points_8h.html#a2f7b981bd314f565407a2db0358bf81b">fisherDistribution</a> (double theta, double phi, double kappa, std::mt19937_64 &amp;generator)</td></tr>
<tr class="separator:a2f7b981bd314f565407a2db0358bf81b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a152eb5ef32d8e1dd69785a1e05d9c8c0"><td class="memItemLeft" align="right" valign="top">double *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="generating_points_8h.html#a152eb5ef32d8e1dd69785a1e05d9c8c0">randomTranslation</a> (std::mt19937_64 &amp;generator, float xMin, float xMax, float yMin, float yMax, float zMin, float zMax)</td></tr>
<tr class="separator:a152eb5ef32d8e1dd69785a1e05d9c8c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a132e593f161b095ca9de50bdc85a3a77"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="generating_points_8h.html#a132e593f161b095ca9de50bdc85a3a77">truncatedPowerLaw</a> (float randomNum, float <a class="el" href="read_input_8cpp.html#ae8063269aec74ddb855e2df228706c4f">emin</a>, float <a class="el" href="read_input_8cpp.html#a672ea0daa9847198dd1ab922ca7106af">emax</a>, float alpha)</td></tr>
<tr class="separator:a132e593f161b095ca9de50bdc85a3a77"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a15a7dfd1320eb3c7c3cc2c53ed4ba2c1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="generating_points_8h.html#a15a7dfd1320eb3c7c3cc2c53ed4ba2c1">generateTheta</a> (float *&amp;thetaArray, float aspectRatio, int nPoints)</td></tr>
<tr class="separator:a15a7dfd1320eb3c7c3cc2c53ed4ba2c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3af81bf42f3459e297870e04f2966c0"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="generating_points_8h.html#aa3af81bf42f3459e297870e04f2966c0">greaterThan</a> (float i, float j)</td></tr>
<tr class="separator:aa3af81bf42f3459e297870e04f2966c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="a22991db6b15a6147e875c27a84402d4c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a22991db6b15a6147e875c27a84402d4c">&sect;&nbsp;</a></span>discretizeLineOfIntersection()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;<a class="el" href="struct_point.html">Point</a>&gt; discretizeLineOfIntersection </td>
          <td>(</td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>pt1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>pt2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>dist</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Discretizes intersetion Arg 1: End point 1, array of three doubles {x, y, z} Arg 2: End point 2, array of three doubles {x, y, z} Return: List of 3D points of the discretized nodes, including end points </p>

<p>Definition at line <a class="el" href="generating_points_8cpp_source.html#l00018">18</a> of file <a class="el" href="generating_points_8cpp_source.html">generatingPoints.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="generating_points_8h_a22991db6b15a6147e875c27a84402d4c_cgraph.png" border="0" usemap="#generating_points_8h_a22991db6b15a6147e875c27a84402d4c_cgraph" alt=""/></div>
<map name="generating_points_8h_a22991db6b15a6147e875c27a84402d4c_cgraph" id="generating_points_8h_a22991db6b15a6147e875c27a84402d4c_cgraph">
<area shape="rect" id="node2" href="generating_points_8cpp.html#a1765372f6dbad65b4d7cac36d830bdfe" title="lineFunction3D" alt="" coords="241,5,351,32"/>
</map>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="generating_points_8h_a22991db6b15a6147e875c27a84402d4c_icgraph.png" border="0" usemap="#generating_points_8h_a22991db6b15a6147e875c27a84402d4c_icgraph" alt=""/></div>
<map name="generating_points_8h_a22991db6b15a6147e875c27a84402d4c_icgraph" id="generating_points_8h_a22991db6b15a6147e875c27a84402d4c_icgraph">
<area shape="rect" id="node2" href="output_8h.html#a28522d95b2cb41e475acf0136cc6a58e" title="writeIntersectionFiles" alt="" coords="240,5,387,32"/>
<area shape="rect" id="node3" href="output_8h.html#ad84815b625587d2194321694a13f2477" title="writeOutput" alt="" coords="435,5,525,32"/>
<area shape="rect" id="node4" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="573,5,624,32"/>
</map>
</div>

</div>
</div>
<a id="a2f7b981bd314f565407a2db0358bf81b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2f7b981bd314f565407a2db0358bf81b">&sect;&nbsp;</a></span>fisherDistribution()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double* fisherDistribution </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>theta</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>phi</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>kappa</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::mt19937_64 &amp;&#160;</td>
          <td class="paramname"><em>generator</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Creates and returns an x,y,z array of doubles using fisher distribution.</p>
<p>NOTE: Uses new[] to return an array. NEED TO USE delete[] TO FREE THE MEMORY AFTER USE</p>
<p>Arg 1: theta, the angle the normal vector makes with the z-axis Arg 2: phi, the angle the projection of the normal onto the x-y plane makes with the x-axis Arg 3: kappa, parameter for the fisher distribnShaprutions Arg 4: Random generator, see std c++ &lt;random&gt; library Return: A fisher distribution array {x, y, z}. Used for random generation of polygon normal vectors. </p>

<p>Definition at line <a class="el" href="generating_points_8cpp_source.html#l00093">93</a> of file <a class="el" href="generating_points_8cpp_source.html">generatingPoints.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="generating_points_8h_a2f7b981bd314f565407a2db0358bf81b_cgraph.png" border="0" usemap="#generating_points_8h_a2f7b981bd314f565407a2db0358bf81b_cgraph" alt=""/></div>
<map name="generating_points_8h_a2f7b981bd314f565407a2db0358bf81b_cgraph" id="generating_points_8h_a2f7b981bd314f565407a2db0358bf81b_cgraph">
<area shape="rect" id="node2" href="vector_functions_8h.html#a94303b1c8dd36d71e57fd0e4d5d26ae3" title="crossProduct" alt="" coords="177,5,277,32"/>
<area shape="rect" id="node3" href="vector_functions_8h.html#abb1d4beb5939c7a5ddd4978c15fab7bb" title="dotProduct" alt="" coords="183,56,270,83"/>
</map>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="generating_points_8h_a2f7b981bd314f565407a2db0358bf81b_icgraph.png" border="0" usemap="#generating_points_8h_a2f7b981bd314f565407a2db0358bf81b_icgraph" alt=""/></div>
<map name="generating_points_8h_a2f7b981bd314f565407a2db0358bf81b_icgraph" id="generating_points_8h_a2f7b981bd314f565407a2db0358bf81b_icgraph">
<area shape="rect" id="node2" href="insert_shape_8h.html#a4f91304a14fefba4d4f93f2f3e54dee4" title="generatePoly" alt="" coords="213,5,313,32"/>
<area shape="rect" id="node5" href="insert_shape_8h.html#a4a4d307b0a091a6159358f312371ae95" title="generatePoly_withRadius" alt="" coords="176,56,349,83"/>
<area shape="rect" id="node3" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="512,31,563,57"/>
<area shape="rect" id="node4" href="fracture_estimating_8h.html#a7cf21b594fd24b2879af467e23bdac0a" title="dryRun" alt="" coords="398,56,463,83"/>
</map>
</div>

</div>
</div>
<a id="a15a7dfd1320eb3c7c3cc2c53ed4ba2c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a15a7dfd1320eb3c7c3cc2c53ed4ba2c1">&sect;&nbsp;</a></span>generateTheta()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void generateTheta </td>
          <td>(</td>
          <td class="paramtype">float *&amp;&#160;</td>
          <td class="paramname"><em>thetaArray</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>aspectRatio</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nPoints</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Integrate diff eq for theta as function of arc length using RK2 Used once for each ell family, saves theta array to shape structures Arg 1: OUTPUT, Theta array used for ellipse generation Arg 2: Aspect ratio of ellipse family Arg 3: Number of points being used for ellipse family </p>

<p>Definition at line <a class="el" href="generating_points_8cpp_source.html#l00224">224</a> of file <a class="el" href="generating_points_8cpp_source.html">generatingPoints.cpp</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="generating_points_8h_a15a7dfd1320eb3c7c3cc2c53ed4ba2c1_icgraph.png" border="0" usemap="#generating_points_8h_a15a7dfd1320eb3c7c3cc2c53ed4ba2c1_icgraph" alt=""/></div>
<map name="generating_points_8h_a15a7dfd1320eb3c7c3cc2c53ed4ba2c1_icgraph" id="generating_points_8h_a15a7dfd1320eb3c7c3cc2c53ed4ba2c1_icgraph">
<area shape="rect" id="node2" href="insert_user_ell_8cpp.html#a9841b356b0460e297748d6648c301558" title="insertUserEll" alt="" coords="163,5,261,32"/>
<area shape="rect" id="node4" href="read_input_functions_8h.html#adaf8d7d2e19e6a4111e307d1764115ba" title="getInput" alt="" coords="177,56,247,83"/>
<area shape="rect" id="node3" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="332,5,383,32"/>
<area shape="rect" id="node5" href="read_input_functions_8h.html#af3ca30978155c408a22accb089cfb2f6" title="getElements" alt="" coords="309,56,405,83"/>
</map>
</div>

</div>
</div>
<a id="aa3af81bf42f3459e297870e04f2966c0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa3af81bf42f3459e297870e04f2966c0">&sect;&nbsp;</a></span>greaterThan()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool greaterThan </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>j</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Used for sort() in generateRadiiLists() Compares two floats.</p>
<p>Arg 1: float i Arg 2: float j Return: True if i &gt; j False otherwise </p>

<p>Definition at line <a class="el" href="generating_points_8cpp_source.html#l00263">263</a> of file <a class="el" href="generating_points_8cpp_source.html">generatingPoints.cpp</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="generating_points_8h_aa3af81bf42f3459e297870e04f2966c0_icgraph.png" border="0" usemap="#generating_points_8h_aa3af81bf42f3459e297870e04f2966c0_icgraph" alt=""/></div>
<map name="generating_points_8h_aa3af81bf42f3459e297870e04f2966c0_icgraph" id="generating_points_8h_aa3af81bf42f3459e297870e04f2966c0_icgraph">
<area shape="rect" id="node2" href="fracture_estimating_8h.html#ae3e14f5bf8ea7b1470e64a74e0354947" title="sortRadii" alt="" coords="149,5,224,32"/>
<area shape="rect" id="node3" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="272,5,323,32"/>
</map>
</div>

</div>
</div>
<a id="adb658797956583856890236f9d922f72"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb658797956583856890236f9d922f72">&sect;&nbsp;</a></span>lineFunction3D()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="struct_point.html">Point</a> lineFunction3D </td>
          <td>(</td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>v</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>point</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>t</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns a point on the line/vector v at point t, 0 &lt;= t &lt;= 1 Arg 1: Array of three doubles {x, y, z}, vector of line segment Arg 2: Array of three doubles {x, y, z}, end point on line Arg 3: t, 0&lt;= t &lt;= 1 Return: <a class="el" href="struct_point.html">Point</a> on line </p>

<p>Definition at line <a class="el" href="generating_points_8cpp_source.html#l00072">72</a> of file <a class="el" href="generating_points_8cpp_source.html">generatingPoints.cpp</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="generating_points_8h_adb658797956583856890236f9d922f72_icgraph.png" border="0" usemap="#generating_points_8h_adb658797956583856890236f9d922f72_icgraph" alt=""/></div>
<map name="generating_points_8h_adb658797956583856890236f9d922f72_icgraph" id="generating_points_8h_adb658797956583856890236f9d922f72_icgraph">
<area shape="rect" id="node2" href="computational_geometry_8h.html#a69f93a65c39c49d1b705fad32f790e98" title="shrinkIntersection" alt="" coords="166,161,293,187"/>
<area shape="rect" id="node12" href="generating_points_8h.html#a22991db6b15a6147e875c27a84402d4c" title="discretizeLineOfIntersection" alt="" coords="341,287,528,314"/>
<area shape="rect" id="node3" href="computational_geometry_8h.html#adf34efb0050985566dfb41f51967680f" title="checkCloseEdge" alt="" coords="373,149,496,175"/>
<area shape="rect" id="node4" href="computational_geometry_8h.html#a7ada98067054623a6bcc19ab19403682" title="FRAM" alt="" coords="619,146,679,173"/>
<area shape="rect" id="node5" href="computational_geometry_8h.html#aff243280740a51cada5c0dd94021fb66" title="intersectionChecking" alt="" coords="771,145,917,171"/>
<area shape="rect" id="node6" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="1184,145,1235,171"/>
<area shape="rect" id="node7" href="insert_user_ell_8cpp.html#a9841b356b0460e297748d6648c301558" title="insertUserEll" alt="" coords="1002,43,1099,70"/>
<area shape="rect" id="node8" href="insert_user_ell_by_coord_8cpp.html#a49e6b0be012ed44c6ef83ea66ed6dd86" title="insertUserEllByCoord" alt="" coords="976,94,1125,121"/>
<area shape="rect" id="node9" href="insert_user_rects_8cpp.html#af69365c2e0148366aabe6751ffc54a79" title="insertUserRects" alt="" coords="992,145,1109,171"/>
<area shape="rect" id="node10" href="insert_user_rects_by_coord_8cpp.html#a244f461634679dc91d08da3e183f9b8c" title="insertUserRectsByCoord" alt="" coords="966,195,1135,222"/>
<area shape="rect" id="node11" href="remove_fractures_8h.html#a016a4a3e0104523549279e6f6cf6c6d8" title="removeFractures" alt="" coords="989,246,1112,273"/>
<area shape="rect" id="node13" href="output_8h.html#a28522d95b2cb41e475acf0136cc6a58e" title="writeIntersectionFiles" alt="" coords="576,294,723,321"/>
<area shape="rect" id="node14" href="output_8h.html#ad84815b625587d2194321694a13f2477" title="writeOutput" alt="" coords="799,295,889,322"/>
</map>
</div>

</div>
</div>
<a id="a152eb5ef32d8e1dd69785a1e05d9c8c0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a152eb5ef32d8e1dd69785a1e05d9c8c0">&sect;&nbsp;</a></span>randomTranslation()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double* randomTranslation </td>
          <td>(</td>
          <td class="paramtype">std::mt19937_64 &amp;&#160;</td>
          <td class="paramname"><em>generator</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>xMin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>xMax</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>yMin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>yMax</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>zMin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>zMax</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Uses new[] to pass a vector/array. NEED TO USE delete[] TO FREE THE MEMORY AFTER USE Arg 1: Random generator, see std c++ &lt;random&gt; library Arg 2: minimum x for random x Arg 3: maximum x for random x Arg 4: maximum y for random y Arg 5: minimum y for random y Arg 6: maximum z for random z Arg 7: minimum z for random z Return: Pointer to random ranslation, array of three doubles {x, y, z} </p>

<p>Definition at line <a class="el" href="generating_points_8cpp_source.html#l00177">177</a> of file <a class="el" href="generating_points_8cpp_source.html">generatingPoints.cpp</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="generating_points_8h_a152eb5ef32d8e1dd69785a1e05d9c8c0_icgraph.png" border="0" usemap="#generating_points_8h_a152eb5ef32d8e1dd69785a1e05d9c8c0_icgraph" alt=""/></div>
<map name="generating_points_8h_a152eb5ef32d8e1dd69785a1e05d9c8c0_icgraph" id="generating_points_8h_a152eb5ef32d8e1dd69785a1e05d9c8c0_icgraph">
<area shape="rect" id="node2" href="insert_shape_8h.html#a4f91304a14fefba4d4f93f2f3e54dee4" title="generatePoly" alt="" coords="223,5,323,32"/>
<area shape="rect" id="node5" href="insert_shape_8h.html#a4a4d307b0a091a6159358f312371ae95" title="generatePoly_withRadius" alt="" coords="187,56,360,83"/>
<area shape="rect" id="node6" href="insert_shape_8h.html#afa95ede56e6ecb8918b61c5a2815d40d" title="reTranslatePoly" alt="" coords="215,107,331,133"/>
<area shape="rect" id="node3" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="523,56,573,83"/>
<area shape="rect" id="node4" href="fracture_estimating_8h.html#a7cf21b594fd24b2879af467e23bdac0a" title="dryRun" alt="" coords="409,56,474,83"/>
</map>
</div>

</div>
</div>
<a id="a132e593f161b095ca9de50bdc85a3a77"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a132e593f161b095ca9de50bdc85a3a77">&sect;&nbsp;</a></span>truncatedPowerLaw()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float truncatedPowerLaw </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>randomNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>min</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>max</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>alpha</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Distrubution function for truncated power-law randomNum must be between 0 and 1 This distribution should be sampled uniformly between 0 and 1 to produce a truncated power-law distribution Arg 1: Random variable between 0 and 1 Arg 2: Minimum number which can be returned from the distribution Arg 3: Maximum number which can be returned from the distribution Arg 4: Power-law's alpha Return: Random float adhering to the truncated power law distribution </p>

<p>Definition at line <a class="el" href="generating_points_8cpp_source.html#l00208">208</a> of file <a class="el" href="generating_points_8cpp_source.html">generatingPoints.cpp</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="generating_points_8h.html">generatingPoints.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.12 </li>
  </ul>
</div>
</body>
</html>
