<!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: vectorFunctions.cpp 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('vector_functions_8cpp.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">vectorFunctions.cpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;cmath&gt;</code><br />
<code>#include &quot;<a class="el" href="structures_8h_source.html">structures.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="vector_functions_8h_source.html">vectorFunctions.h</a>&quot;</code><br />
<code>#include &lt;iostream&gt;</code><br />
<code>#include &quot;<a class="el" href="input_8h_source.html">input.h</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for vectorFunctions.cpp:</div>
<div class="dyncontent">
<div class="center"><img src="vector_functions_8cpp__incl.png" border="0" usemap="#vector_functions_8cpp" alt=""/></div>
<map name="vector_functions_8cpp" id="vector_functions_8cpp">
<area shape="rect" id="node3" href="structures_8h.html" title="structures.h" alt="" coords="5,155,96,181"/>
<area shape="rect" id="node5" href="vector_functions_8h.html" title="vectorFunctions.h" alt="" coords="177,80,303,107"/>
<area shape="rect" id="node9" href="input_8h.html" title="input.h" alt="" coords="325,155,387,181"/>
</map>
</div>
</div>
<p><a href="vector_functions_8cpp_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:a3c2b95a1658779bf4d2b104fa9513e75"><td class="memItemLeft" align="right" valign="top">double *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="vector_functions_8cpp.html#a3c2b95a1658779bf4d2b104fa9513e75">projection</a> (const double *v1, const double *v2)</td></tr>
<tr class="separator:a3c2b95a1658779bf4d2b104fa9513e75"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af04ebdcbe44a303101290e88a5971c71"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="vector_functions_8cpp.html#af04ebdcbe44a303101290e88a5971c71">euclideanDistance</a> (double *A, double *B)</td></tr>
<tr class="separator:af04ebdcbe44a303101290e88a5971c71"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac02fbd874b60abb201dce0afd7775416"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="vector_functions_8cpp.html#ac02fbd874b60abb201dce0afd7775416">euclideanDistance</a> (<a class="el" href="struct_point.html">Point</a> &amp;A, <a class="el" href="struct_point.html">Point</a> &amp;B)</td></tr>
<tr class="separator:ac02fbd874b60abb201dce0afd7775416"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd59d451cff22898e4153261bc1fb38e"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="vector_functions_8cpp.html#afd59d451cff22898e4153261bc1fb38e">angleBeteenVectors</a> (const double *vector1, const double *vector2)</td></tr>
<tr class="separator:afd59d451cff22898e4153261bc1fb38e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="afd59d451cff22898e4153261bc1fb38e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afd59d451cff22898e4153261bc1fb38e">&sect;&nbsp;</a></span>angleBeteenVectors()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double angleBeteenVectors </td>
          <td>(</td>
          <td class="paramtype">const double *&#160;</td>
          <td class="paramname"><em>vector1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const double *&#160;</td>
          <td class="paramname"><em>vector2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="vector_functions_8cpp_source.html#l00074">74</a> of file <a class="el" href="vector_functions_8cpp_source.html">vectorFunctions.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="vector_functions_8cpp_afd59d451cff22898e4153261bc1fb38e_cgraph.png" border="0" usemap="#vector_functions_8cpp_afd59d451cff22898e4153261bc1fb38e_cgraph" alt=""/></div>
<map name="vector_functions_8cpp_afd59d451cff22898e4153261bc1fb38e_cgraph" id="vector_functions_8cpp_afd59d451cff22898e4153261bc1fb38e_cgraph">
<area shape="rect" id="node2" href="vector_functions_8h.html#abb1d4beb5939c7a5ddd4978c15fab7bb" title="dotProduct" alt="" coords="198,5,285,32"/>
<area shape="rect" id="node3" href="vector_functions_8h.html#a92da2058f3ed2a6db16d2fe0e445794a" title="magnitude" alt="" coords="199,56,283,83"/>
</map>
</div>

</div>
</div>
<a id="af04ebdcbe44a303101290e88a5971c71"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af04ebdcbe44a303101290e88a5971c71">&sect;&nbsp;</a></span>euclideanDistance() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double euclideanDistance </td>
          <td>(</td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>A</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>B</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="vector_functions_8cpp_source.html#l00046">46</a> of file <a class="el" href="vector_functions_8cpp_source.html">vectorFunctions.cpp</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="vector_functions_8cpp_af04ebdcbe44a303101290e88a5971c71_icgraph.png" border="0" usemap="#vector_functions_8cpp_af04ebdcbe44a303101290e88a5971c71_icgraph" alt=""/></div>
<map name="vector_functions_8cpp_af04ebdcbe44a303101290e88a5971c71_icgraph" id="vector_functions_8cpp_af04ebdcbe44a303101290e88a5971c71_icgraph">
<area shape="rect" id="node2" href="computational_geometry_8h.html#a237899188f8ca6cf74a2da890cd13868" title="checkForTripleIntersections" alt="" coords="185,170,370,197"/>
<area shape="rect" id="node7" href="insert_user_ell_by_coord_8cpp.html#a49e6b0be012ed44c6ef83ea66ed6dd86" title="insertUserEllByCoord" alt="" coords="819,246,968,273"/>
<area shape="rect" id="node11" href="output_8h.html#a28522d95b2cb41e475acf0136cc6a58e" title="writeIntersectionFiles" alt="" coords="419,297,565,323"/>
<area shape="rect" id="node3" href="computational_geometry_8h.html#a7ada98067054623a6bcc19ab19403682" title="FRAM" alt="" coords="462,170,522,197"/>
<area shape="rect" id="node4" href="computational_geometry_8h.html#aff243280740a51cada5c0dd94021fb66" title="intersectionChecking" alt="" coords="614,145,759,171"/>
<area shape="rect" id="node5" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="1027,145,1077,171"/>
<area shape="rect" id="node6" href="insert_user_ell_8cpp.html#a9841b356b0460e297748d6648c301558" title="insertUserEll" alt="" coords="845,43,942,70"/>
<area shape="rect" id="node8" href="insert_user_rects_8cpp.html#af69365c2e0148366aabe6751ffc54a79" title="insertUserRects" alt="" coords="835,94,952,121"/>
<area shape="rect" id="node9" href="insert_user_rects_by_coord_8cpp.html#a244f461634679dc91d08da3e183f9b8c" title="insertUserRectsByCoord" alt="" coords="809,145,978,171"/>
<area shape="rect" id="node10" href="remove_fractures_8h.html#a016a4a3e0104523549279e6f6cf6c6d8" title="removeFractures" alt="" coords="832,195,955,222"/>
<area shape="rect" id="node12" href="output_8h.html#ad84815b625587d2194321694a13f2477" title="writeOutput" alt="" coords="641,297,732,323"/>
</map>
</div>

</div>
</div>
<a id="ac02fbd874b60abb201dce0afd7775416"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac02fbd874b60abb201dce0afd7775416">&sect;&nbsp;</a></span>euclideanDistance() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double euclideanDistance </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_point.html">Point</a> &amp;&#160;</td>
          <td class="paramname"><em>A</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_point.html">Point</a> &amp;&#160;</td>
          <td class="paramname"><em>B</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="vector_functions_8cpp_source.html#l00057">57</a> of file <a class="el" href="vector_functions_8cpp_source.html">vectorFunctions.cpp</a>.</p>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double* projection </td>
          <td>(</td>
          <td class="paramtype">const double *&#160;</td>
          <td class="paramname"><em>v1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const double *&#160;</td>
          <td class="paramname"><em>v2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="vector_functions_8cpp_source.html#l00020">20</a> of file <a class="el" href="vector_functions_8cpp_source.html">vectorFunctions.cpp</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="vector_functions_8cpp_a3c2b95a1658779bf4d2b104fa9513e75_icgraph.png" border="0" usemap="#vector_functions_8cpp_a3c2b95a1658779bf4d2b104fa9513e75_icgraph" alt=""/></div>
<map name="vector_functions_8cpp_a3c2b95a1658779bf4d2b104fa9513e75_icgraph" id="vector_functions_8cpp_a3c2b95a1658779bf4d2b104fa9513e75_icgraph">
<area shape="rect" id="node2" href="computational_geometry_8h.html#a5e3e0a14f3ad58c314ce2e6a29b03fa2" title="pointToLineSeg" alt="" coords="134,81,250,108"/>
<area shape="rect" id="node3" href="computational_geometry_8h.html#a69f93a65c39c49d1b705fad32f790e98" title="shrinkIntersection" alt="" coords="527,5,654,32"/>
<area shape="rect" id="node4" href="computational_geometry_8h.html#adf34efb0050985566dfb41f51967680f" title="checkCloseEdge" alt="" coords="741,56,864,83"/>
<area shape="rect" id="node13" href="computational_geometry_8h.html#a63cb49a89f3b90a72aea7b6a24548633" title="checkDistanceFromNodes" alt="" coords="299,107,477,133"/>
<area shape="rect" id="node14" href="computational_geometry_8h.html#a545f45434dcbd126c6ff994b9ec2588b" title="lineSegToLineSegSep" alt="" coords="311,157,465,184"/>
<area shape="rect" id="node5" href="computational_geometry_8h.html#a7ada98067054623a6bcc19ab19403682" title="FRAM" alt="" coords="950,132,1010,159"/>
<area shape="rect" id="node6" href="computational_geometry_8h.html#aff243280740a51cada5c0dd94021fb66" title="intersectionChecking" alt="" coords="1059,132,1205,159"/>
<area shape="rect" id="node7" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="1472,132,1523,159"/>
<area shape="rect" id="node8" href="insert_user_ell_8cpp.html#a9841b356b0460e297748d6648c301558" title="insertUserEll" alt="" coords="1290,56,1387,83"/>
<area shape="rect" id="node9" href="insert_user_ell_by_coord_8cpp.html#a49e6b0be012ed44c6ef83ea66ed6dd86" title="insertUserEllByCoord" alt="" coords="1264,107,1413,133"/>
<area shape="rect" id="node10" href="insert_user_rects_8cpp.html#af69365c2e0148366aabe6751ffc54a79" title="insertUserRects" alt="" coords="1280,157,1397,184"/>
<area shape="rect" id="node11" href="insert_user_rects_by_coord_8cpp.html#a244f461634679dc91d08da3e183f9b8c" title="insertUserRectsByCoord" alt="" coords="1254,208,1423,235"/>
<area shape="rect" id="node12" href="remove_fractures_8h.html#a016a4a3e0104523549279e6f6cf6c6d8" title="removeFractures" alt="" coords="1277,259,1400,285"/>
<area shape="rect" id="node15" href="computational_geometry_8h.html#a5edbf5558b99624dfb90275aa07ba149" title="lineSegToLineSeg" alt="" coords="525,157,656,184"/>
<area shape="rect" id="node16" href="computational_geometry_8h.html#ac1228db3b0fb85b1a5233b1fb78edd4a" title="checkDistToOldIntersections" alt="" coords="707,107,899,133"/>
<area shape="rect" id="node17" href="computational_geometry_8h.html#a4c94ffa2818f164dbda3f1cb6f0fb9a8" title="checkDistToNewIntersections" alt="" coords="704,157,901,184"/>
<area shape="rect" id="node18" href="computational_geometry_8h.html#a237899188f8ca6cf74a2da890cd13868" title="checkForTripleIntersections" alt="" coords="710,208,895,235"/>
</map>
</div>

</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="vector_functions_8cpp.html">vectorFunctions.cpp</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>
