Documentation for 0fea073413

This commit is contained in:
github-actions
2022-10-25 21:38:38 +00:00
parent 179526ce7a
commit 54cd9079ad
1772 changed files with 5550 additions and 5247 deletions

View File

@@ -0,0 +1,508 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Algorithms_in_C++: physics/ground_to_ground_projectile_motion.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>
<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>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.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 id="projectrow">
<td id="projectalign">
<div id="projectname">Algorithms_in_C++<span id="projectnumber">&#160;1.0.0</span>
</div>
<div id="projectbrief">Set of algorithms implemented in C++.</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.5 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('../../',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</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">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('d9/d29/ground__to__ground__projectile__motion_8cpp.html','../../'); initResizable(); });
/* @license-end */
</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">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#func-members">Functions</a> </div>
<div class="headertitle"><div class="title">ground_to_ground_projectile_motion.cpp File Reference</div></div>
</div><!--header-->
<div class="contents">
<p>Ground to ground <a href="https://en.wikipedia.org/wiki/Projectile_motion" target="_blank">projectile motion</a> equation implementations.
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;cassert&gt;</code><br />
<code>#include &lt;cmath&gt;</code><br />
<code>#include &lt;iostream&gt;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for ground_to_ground_projectile_motion.cpp:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../df/dd3/ground__to__ground__projectile__motion_8cpp__incl.svg" width="256" height="124"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:d5/dd0/namespacephysics"><td class="memItemLeft" align="right" valign="top">namespace &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/dd0/namespacephysics.html">physics</a></td></tr>
<tr class="memdesc:d5/dd0/namespacephysics"><td class="mdescLeft">&#160;</td><td class="mdescRight">for IO operations <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:d0/d20/namespaceground__to__ground__projectile__motion"><td class="memItemLeft" align="right" valign="top">namespace &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d20/namespaceground__to__ground__projectile__motion.html">ground_to_ground_projectile_motion</a></td></tr>
<tr class="memdesc:d0/d20/namespaceground__to__ground__projectile__motion"><td class="mdescLeft">&#160;</td><td class="mdescRight">Functions for the Ground to ground <a href="https://en.wikipedia.org/wiki/Projectile_motion" target="_blank">projectile motion</a> equation. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:aba1d26faf6a5379c28cae458956241de"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/d29/ground__to__ground__projectile__motion_8cpp.html#aba1d26faf6a5379c28cae458956241de">physics::ground_to_ground_projectile_motion::degrees_to_radians</a> (double radian, double PI=3.14)</td></tr>
<tr class="memdesc:aba1d26faf6a5379c28cae458956241de"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert radians to degrees. <a href="../../d9/d29/ground__to__ground__projectile__motion_8cpp.html#aba1d26faf6a5379c28cae458956241de">More...</a><br /></td></tr>
<tr class="separator:aba1d26faf6a5379c28cae458956241de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a563e066975fed1b84750a0a47c3cbb37"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a563e066975fed1b84750a0a47c3cbb37"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../d9/d29/ground__to__ground__projectile__motion_8cpp.html#a563e066975fed1b84750a0a47c3cbb37">physics::ground_to_ground_projectile_motion::time_of_flight</a> (T initial_velocity, T angle, double gravity=9.81)</td></tr>
<tr class="memdesc:a563e066975fed1b84750a0a47c3cbb37"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calculate the time of flight. <a href="../../d9/d29/ground__to__ground__projectile__motion_8cpp.html#a563e066975fed1b84750a0a47c3cbb37">More...</a><br /></td></tr>
<tr class="separator:a563e066975fed1b84750a0a47c3cbb37"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10362eb607d7882bac3a0688504b00ff"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a10362eb607d7882bac3a0688504b00ff"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../d9/d29/ground__to__ground__projectile__motion_8cpp.html#a10362eb607d7882bac3a0688504b00ff">physics::ground_to_ground_projectile_motion::horizontal_range</a> (T initial_velocity, T angle, T time)</td></tr>
<tr class="memdesc:a10362eb607d7882bac3a0688504b00ff"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calculate the horizontal distance that the projectile travels. <a href="../../d9/d29/ground__to__ground__projectile__motion_8cpp.html#a10362eb607d7882bac3a0688504b00ff">More...</a><br /></td></tr>
<tr class="separator:a10362eb607d7882bac3a0688504b00ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa554429def63077ab7a550c0affbfefa"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:aa554429def63077ab7a550c0affbfefa"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../d9/d29/ground__to__ground__projectile__motion_8cpp.html#aa554429def63077ab7a550c0affbfefa">physics::ground_to_ground_projectile_motion::max_height</a> (T initial_velocity, T angle, double gravity=9.81)</td></tr>
<tr class="memdesc:aa554429def63077ab7a550c0affbfefa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calculate the max height of the projectile. <a href="../../d9/d29/ground__to__ground__projectile__motion_8cpp.html#aa554429def63077ab7a550c0affbfefa">More...</a><br /></td></tr>
<tr class="separator:aa554429def63077ab7a550c0affbfefa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa8dca7b867074164d5f45b0f3851269d"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/d29/ground__to__ground__projectile__motion_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">test</a> ()</td></tr>
<tr class="memdesc:aa8dca7b867074164d5f45b0f3851269d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Self-test implementations. <a href="../../d9/d29/ground__to__ground__projectile__motion_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">More...</a><br /></td></tr>
<tr class="separator:aa8dca7b867074164d5f45b0f3851269d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/d29/ground__to__ground__projectile__motion_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a> ()</td></tr>
<tr class="memdesc:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Main function. <a href="../../d9/d29/ground__to__ground__projectile__motion_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">More...</a><br /></td></tr>
<tr class="separator:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >Ground to ground <a href="https://en.wikipedia.org/wiki/Projectile_motion" target="_blank">projectile motion</a> equation implementations. </p>
<p >Ground to ground projectile motion is when a projectile's trajectory starts at the ground, reaches the apex, then falls back on the ground.</p>
<dl class="section author"><dt>Author</dt><dd><a href="https://github.com/Focusucof" target="_blank">Focusucof</a> </dd></dl>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="aba1d26faf6a5379c28cae458956241de" name="aba1d26faf6a5379c28cae458956241de"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aba1d26faf6a5379c28cae458956241de">&#9670;&#160;</a></span>degrees_to_radians()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double physics::ground_to_ground_projectile_motion::degrees_to_radians </td>
<td>(</td>
<td class="paramtype">double&#160;</td>
<td class="paramname"><em>radian</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&#160;</td>
<td class="paramname"><em>PI</em> = <code>3.14</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Convert radians to degrees. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">radian</td><td>Angle in radians </td></tr>
<tr><td class="paramname">PI</td><td>The definition of the constant PI </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Angle in degrees </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 33</span> {</div>
<div class="line"><span class="lineno"> 34</span> <span class="keywordflow">return</span> (radian * (PI / 180));</div>
<div class="line"><span class="lineno"> 35</span>}</div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d9/d29/ground__to__ground__projectile__motion_8cpp_aba1d26faf6a5379c28cae458956241de_cgraph.svg" width="184" height="90"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</div>
</div>
<a id="a10362eb607d7882bac3a0688504b00ff" name="a10362eb607d7882bac3a0688504b00ff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a10362eb607d7882bac3a0688504b00ff">&#9670;&#160;</a></span>horizontal_range()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="memname">
<tr>
<td class="memname">T physics::ground_to_ground_projectile_motion::horizontal_range </td>
<td>(</td>
<td class="paramtype">T&#160;</td>
<td class="paramname"><em>initial_velocity</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">T&#160;</td>
<td class="paramname"><em>angle</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">T&#160;</td>
<td class="paramname"><em>time</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Calculate the horizontal distance that the projectile travels. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">initial_velocity</td><td>The starting velocity of the projectile </td></tr>
<tr><td class="paramname">time</td><td>The time that the projectile is in the air </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Horizontal distance that the projectile travels </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 57</span> {</div>
<div class="line"><span class="lineno"> 58</span> <span class="keywordtype">double</span> Vix = initial_velocity * (<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/cos.html">std::cos</a>(<a class="code hl_function" href="../../d9/d29/ground__to__ground__projectile__motion_8cpp.html#aba1d26faf6a5379c28cae458956241de">degrees_to_radians</a>(angle))); <span class="comment">// calculate x component of the initial velocity</span></div>
<div class="line"><span class="lineno"> 59</span> <span class="keywordflow">return</span> Vix * <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/chrono/c/time.html">time</a>;</div>
<div class="line"><span class="lineno"> 60</span>}</div>
<div class="ttc" id="acos_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/numeric/math/cos.html">std::cos</a></div><div class="ttdeci">T cos(T... args)</div></div>
<div class="ttc" id="aground__to__ground__projectile__motion_8cpp_html_aba1d26faf6a5379c28cae458956241de"><div class="ttname"><a href="../../d9/d29/ground__to__ground__projectile__motion_8cpp.html#aba1d26faf6a5379c28cae458956241de">physics::ground_to_ground_projectile_motion::degrees_to_radians</a></div><div class="ttdeci">double degrees_to_radians(double radian, double PI=3.14)</div><div class="ttdoc">Convert radians to degrees.</div><div class="ttdef"><b>Definition:</b> ground_to_ground_projectile_motion.cpp:33</div></div>
<div class="ttc" id="atime_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/chrono/c/time.html">std::time</a></div><div class="ttdeci">T time(T... args)</div></div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d9/d29/ground__to__ground__projectile__motion_8cpp_a10362eb607d7882bac3a0688504b00ff_cgraph.svg" width="406" height="139"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</div>
</div>
<a id="ae66f6b31b5ad750f1fe042a706a4e3d4" name="ae66f6b31b5ad750f1fe042a706a4e3d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae66f6b31b5ad750f1fe042a706a4e3d4">&#9670;&#160;</a></span>main()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int main </td>
<td>(</td>
<td class="paramtype">void&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Main function. </p>
<dl class="section return"><dt>Returns</dt><dd>0 on exit </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 136</span> {</div>
<div class="line"><span class="lineno"> 137</span> <a class="code hl_function" href="../../d9/d29/ground__to__ground__projectile__motion_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">test</a>(); <span class="comment">// run self-test implementations</span></div>
<div class="line"><span class="lineno"> 138</span> <span class="keywordflow">return</span> 0;</div>
<div class="line"><span class="lineno"> 139</span>}</div>
<div class="ttc" id="aground__to__ground__projectile__motion_8cpp_html_aa8dca7b867074164d5f45b0f3851269d"><div class="ttname"><a href="../../d9/d29/ground__to__ground__projectile__motion_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">test</a></div><div class="ttdeci">static void test()</div><div class="ttdoc">Self-test implementations.</div><div class="ttdef"><b>Definition:</b> ground_to_ground_projectile_motion.cpp:81</div></div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d9/d29/ground__to__ground__projectile__motion_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg" width="282" height="86"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</div>
</div>
<a id="aa554429def63077ab7a550c0affbfefa" name="aa554429def63077ab7a550c0affbfefa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa554429def63077ab7a550c0affbfefa">&#9670;&#160;</a></span>max_height()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="memname">
<tr>
<td class="memname">T physics::ground_to_ground_projectile_motion::max_height </td>
<td>(</td>
<td class="paramtype">T&#160;</td>
<td class="paramname"><em>initial_velocity</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">T&#160;</td>
<td class="paramname"><em>angle</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&#160;</td>
<td class="paramname"><em>gravity</em> = <code>9.81</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Calculate the max height of the projectile. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">initial_velocity</td><td>The starting velocity of the projectile </td></tr>
<tr><td class="paramname">angle</td><td>The angle that the projectile is launched at in degrees </td></tr>
<tr><td class="paramname">gravity</td><td>The value used for the gravity constant </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The max height that the projectile reaches </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 70</span> {</div>
<div class="line"><span class="lineno"> 71</span> <span class="keywordtype">double</span> Viy = initial_velocity * (<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/sin.html">std::sin</a>(<a class="code hl_function" href="../../d9/d29/ground__to__ground__projectile__motion_8cpp.html#aba1d26faf6a5379c28cae458956241de">degrees_to_radians</a>(angle))); <span class="comment">// calculate y component of the initial velocity</span></div>
<div class="line"><span class="lineno"> 72</span> <span class="keywordflow">return</span> (<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/pow.html">std::pow</a>(Viy, 2) / (2.0 * gravity));</div>
<div class="line"><span class="lineno"> 73</span>}</div>
<div class="ttc" id="apow_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/numeric/math/pow.html">std::pow</a></div><div class="ttdeci">T pow(T... args)</div></div>
<div class="ttc" id="asin_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/numeric/math/sin.html">std::sin</a></div><div class="ttdeci">T sin(T... args)</div></div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d9/d29/ground__to__ground__projectile__motion_8cpp_aa554429def63077ab7a550c0affbfefa_cgraph.svg" width="406" height="188"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</div>
</div>
<a id="aa8dca7b867074164d5f45b0f3851269d" name="aa8dca7b867074164d5f45b0f3851269d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa8dca7b867074164d5f45b0f3851269d">&#9670;&#160;</a></span>test()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void test </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Self-test implementations. </p>
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 81</span> {</div>
<div class="line"><span class="lineno"> 82</span> <span class="comment">// initial input variables</span></div>
<div class="line"><span class="lineno"> 83</span> <span class="keywordtype">double</span> initial_velocity = 5.0; <span class="comment">// double initial_velocity input</span></div>
<div class="line"><span class="lineno"> 84</span> <span class="keywordtype">double</span> angle = 40.0; <span class="comment">// double angle input</span></div>
<div class="line"><span class="lineno"> 85</span> </div>
<div class="line"><span class="lineno"> 86</span> <span class="comment">// 1st test</span></div>
<div class="line"><span class="lineno"> 87</span> <span class="keywordtype">double</span> expected_time_of_flight = 0.655; <span class="comment">// expected time output</span></div>
<div class="line"><span class="lineno"> 88</span> <span class="keywordtype">double</span> flight_time_output =</div>
<div class="line"><span class="lineno"> 89</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/round.html">std::round</a>(physics::ground_to_ground_projectile_motion::time_of_flight(initial_velocity, angle) * 1000.0) /</div>
<div class="line"><span class="lineno"> 90</span> 1000.0; <span class="comment">// round output to 3 decimal places</span></div>
<div class="line"><span class="lineno"> 91</span> </div>
<div class="line"><span class="lineno"> 92</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Projectile Flight Time (double)&quot;</span> &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><span class="lineno"> 93</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Input Initial Velocity: &quot;</span> &lt;&lt; initial_velocity &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><span class="lineno"> 94</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Input Angle: &quot;</span> &lt;&lt; angle &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><span class="lineno"> 95</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Expected Output: &quot;</span> &lt;&lt; expected_time_of_flight &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><span class="lineno"> 96</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Output: &quot;</span> &lt;&lt; flight_time_output &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><span class="lineno"> 97</span> assert(flight_time_output == expected_time_of_flight);</div>
<div class="line"><span class="lineno"> 98</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;TEST PASSED&quot;</span> &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a> &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><span class="lineno"> 99</span> </div>
<div class="line"><span class="lineno"> 100</span> <span class="comment">// 2nd test</span></div>
<div class="line"><span class="lineno"> 101</span> <span class="keywordtype">double</span> expected_horizontal_range = 2.51; <span class="comment">// expected range output</span></div>
<div class="line"><span class="lineno"> 102</span> <span class="keywordtype">double</span> horizontal_range_output =</div>
<div class="line"><span class="lineno"> 103</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/round.html">std::round</a>(physics::ground_to_ground_projectile_motion::horizontal_range(initial_velocity, angle,</div>
<div class="line"><span class="lineno"> 104</span> flight_time_output) *</div>
<div class="line"><span class="lineno"> 105</span> 100.0) /</div>
<div class="line"><span class="lineno"> 106</span> 100.0; <span class="comment">// round output to 2 decimal places</span></div>
<div class="line"><span class="lineno"> 107</span> </div>
<div class="line"><span class="lineno"> 108</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Projectile Horizontal Range (double)&quot;</span> &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><span class="lineno"> 109</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Input Initial Velocity: &quot;</span> &lt;&lt; initial_velocity &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><span class="lineno"> 110</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Input Angle: &quot;</span> &lt;&lt; angle &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><span class="lineno"> 111</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Input Time Of Flight: &quot;</span> &lt;&lt; flight_time_output &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><span class="lineno"> 112</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Expected Output: &quot;</span> &lt;&lt; expected_horizontal_range &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><span class="lineno"> 113</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Output: &quot;</span> &lt;&lt; horizontal_range_output &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><span class="lineno"> 114</span> assert(horizontal_range_output == expected_horizontal_range);</div>
<div class="line"><span class="lineno"> 115</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;TEST PASSED&quot;</span> &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a> &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><span class="lineno"> 116</span> </div>
<div class="line"><span class="lineno"> 117</span> <span class="comment">// 3rd test</span></div>
<div class="line"><span class="lineno"> 118</span> <span class="keywordtype">double</span> expected_max_height = 0.526; <span class="comment">// expected height output</span></div>
<div class="line"><span class="lineno"> 119</span> <span class="keywordtype">double</span> max_height_output =</div>
<div class="line"><span class="lineno"> 120</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/round.html">std::round</a>(physics::ground_to_ground_projectile_motion::max_height(initial_velocity, angle) * 1000.0) /</div>
<div class="line"><span class="lineno"> 121</span> 1000.0; <span class="comment">// round output to 3 decimal places</span></div>
<div class="line"><span class="lineno"> 122</span> </div>
<div class="line"><span class="lineno"> 123</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Projectile Max Height (double)&quot;</span> &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><span class="lineno"> 124</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Input Initial Velocity: &quot;</span> &lt;&lt; initial_velocity &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><span class="lineno"> 125</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Input Angle: &quot;</span> &lt;&lt; angle &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><span class="lineno"> 126</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Expected Output: &quot;</span> &lt;&lt; expected_max_height &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><span class="lineno"> 127</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Output: &quot;</span> &lt;&lt; max_height_output &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><span class="lineno"> 128</span> assert(max_height_output == expected_max_height);</div>
<div class="line"><span class="lineno"> 129</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;TEST PASSED&quot;</span> &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a> &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><span class="lineno"> 130</span>}</div>
<div class="ttc" id="abasic_ostream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a></div></div>
<div class="ttc" id="aendl_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a></div><div class="ttdeci">T endl(T... args)</div></div>
<div class="ttc" id="around_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/numeric/math/round.html">std::round</a></div><div class="ttdeci">T round(T... args)</div></div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d9/d29/ground__to__ground__projectile__motion_8cpp_aa8dca7b867074164d5f45b0f3851269d_cgraph.svg" width="183" height="86"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</div>
</div>
<a id="a563e066975fed1b84750a0a47c3cbb37" name="a563e066975fed1b84750a0a47c3cbb37"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a563e066975fed1b84750a0a47c3cbb37">&#9670;&#160;</a></span>time_of_flight()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="memname">
<tr>
<td class="memname">T physics::ground_to_ground_projectile_motion::time_of_flight </td>
<td>(</td>
<td class="paramtype">T&#160;</td>
<td class="paramname"><em>initial_velocity</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">T&#160;</td>
<td class="paramname"><em>angle</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&#160;</td>
<td class="paramname"><em>gravity</em> = <code>9.81</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Calculate the time of flight. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">initial_velocity</td><td>The starting velocity of the projectile </td></tr>
<tr><td class="paramname">angle</td><td>The angle that the projectile is launched at in degrees </td></tr>
<tr><td class="paramname">gravity</td><td>The value used for the gravity constant </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The time that the projectile is in the air for </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 45</span> {</div>
<div class="line"><span class="lineno"> 46</span> <span class="keywordtype">double</span> Viy = initial_velocity * (<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/sin.html">std::sin</a>(<a class="code hl_function" href="../../d9/d29/ground__to__ground__projectile__motion_8cpp.html#aba1d26faf6a5379c28cae458956241de">degrees_to_radians</a>(angle))); <span class="comment">// calculate y component of the initial velocity</span></div>
<div class="line"><span class="lineno"> 47</span> <span class="keywordflow">return</span> 2.0 * Viy / gravity;</div>
<div class="line"><span class="lineno"> 48</span>}</div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d9/d29/ground__to__ground__projectile__motion_8cpp_a563e066975fed1b84750a0a47c3cbb37_cgraph.svg" width="406" height="139"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</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="../../dir_59dc24c326e2a72d1164f014b22de83d.html">physics</a></li><li class="navelem"><a class="el" href="../../d9/d29/ground__to__ground__projectile__motion_8cpp.html">ground_to_ground_projectile_motion.cpp</a></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5 </li>
</ul>
</div>
</body>
</html>

View File

@@ -0,0 +1,9 @@
var ground__to__ground__projectile__motion_8cpp =
[
[ "degrees_to_radians", "d9/d29/ground__to__ground__projectile__motion_8cpp.html#aba1d26faf6a5379c28cae458956241de", null ],
[ "horizontal_range", "d9/d29/ground__to__ground__projectile__motion_8cpp.html#a10362eb607d7882bac3a0688504b00ff", null ],
[ "main", "d9/d29/ground__to__ground__projectile__motion_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4", null ],
[ "max_height", "d9/d29/ground__to__ground__projectile__motion_8cpp.html#aa554429def63077ab7a550c0affbfefa", null ],
[ "test", "d9/d29/ground__to__ground__projectile__motion_8cpp.html#aa8dca7b867074164d5f45b0f3851269d", null ],
[ "time_of_flight", "d9/d29/ground__to__ground__projectile__motion_8cpp.html#a563e066975fed1b84750a0a47c3cbb37", null ]
];

View File

@@ -0,0 +1,5 @@
<map id="physics::ground_to_ground_projectile_motion::horizontal_range" name="physics::ground_to_ground_projectile_motion::horizontal_range">
<area shape="rect" id="node1" title="Calculate the horizontal distance that the projectile travels." alt="" coords="5,35,179,89"/>
<area shape="rect" id="node2" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/numeric/math/cos.html#" title=" " alt="" coords="279,5,348,31"/>
<area shape="rect" id="node3" href="$d9/d29/ground__to__ground__projectile__motion_8cpp.html#aba1d26faf6a5379c28cae458956241de" title="Convert radians to degrees." alt="" coords="227,79,400,133"/>
</map>

View File

@@ -0,0 +1 @@
23bbab58c19d76cc6abc7a10867268bc

View File

@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 6.0.2 (20221011.1828)
-->
<!-- Title: physics::ground_to_ground_projectile_motion::horizontal_range Pages: 1 -->
<svg width="304pt" height="104pt"
viewBox="0.00 0.00 304.00 104.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 100)">
<title>physics::ground_to_ground_projectile_motion::horizontal_range</title>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title="Calculate the horizontal distance that the projectile travels.">
<polygon fill="#999999" stroke="#666666" points="130,-74 0,-74 0,-33 130,-33 130,-74"/>
<text text-anchor="start" x="8" y="-62" font-family="Helvetica,sans-Serif" font-size="10.00">physics::ground_to</text>
<text text-anchor="start" x="8" y="-51" font-family="Helvetica,sans-Serif" font-size="10.00">_ground_projectile_motion</text>
<text text-anchor="middle" x="65" y="-40" font-family="Helvetica,sans-Serif" font-size="10.00">::horizontal_range</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node1 -->
<g id="edge4" class="edge">
<title>Node1&#45;&gt;Node1</title>
<path fill="none" stroke="#63b8ff" d="M34.49,-74.1C31.16,-83.65 41.33,-92 65,-92 79.79,-92 89.31,-88.74 93.56,-83.96"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="97,-84.59 95.51,-74.1 90.14,-83.23 97,-84.59"/>
</g>
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/numeric/math/cos.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="257,-96 205,-96 205,-77 257,-77 257,-96"/>
<text text-anchor="middle" x="231" y="-84" font-family="Helvetica,sans-Serif" font-size="10.00">std::cos</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="#63b8ff" d="M130.35,-66.45C152.3,-70.87 176.03,-75.64 194.83,-79.42"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="194.23,-82.87 204.72,-81.41 195.61,-76.01 194.23,-82.87"/>
</g>
<!-- Node3 -->
<g id="node3" class="node">
<title>Node3</title>
<g id="a_node3"><a xlink:href="../../d9/d29/ground__to__ground__projectile__motion_8cpp.html#aba1d26faf6a5379c28cae458956241de" target="_top" xlink:title="Convert radians to degrees.">
<polygon fill="white" stroke="#666666" points="296,-41 166,-41 166,0 296,0 296,-41"/>
<text text-anchor="start" x="174" y="-29" font-family="Helvetica,sans-Serif" font-size="10.00">physics::ground_to</text>
<text text-anchor="start" x="174" y="-18" font-family="Helvetica,sans-Serif" font-size="10.00">_ground_projectile_motion</text>
<text text-anchor="middle" x="231" y="-7" font-family="Helvetica,sans-Serif" font-size="10.00">::degrees_to_radians</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node3 -->
<g id="edge2" class="edge">
<title>Node1&#45;&gt;Node3</title>
<path fill="none" stroke="#63b8ff" d="M130.35,-40.55C138.73,-38.87 147.37,-37.13 155.9,-35.41"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="156.73,-38.81 165.84,-33.41 155.35,-31.95 156.73,-38.81"/>
</g>
<!-- Node3&#45;&gt;Node3 -->
<g id="edge3" class="edge">
<title>Node3&#45;&gt;Node3</title>
<path fill="none" stroke="#63b8ff" d="M200.49,-41.1C197.16,-50.65 207.33,-59 231,-59 245.79,-59 255.31,-55.74 259.56,-50.96"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="263,-51.59 261.51,-41.1 256.14,-50.23 263,-51.59"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

@@ -0,0 +1,5 @@
<map id="physics::ground_to_ground_projectile_motion::time_of_flight" name="physics::ground_to_ground_projectile_motion::time_of_flight">
<area shape="rect" id="node1" title="Calculate the time of flight." alt="" coords="5,61,179,116"/>
<area shape="rect" id="node2" href="$d9/d29/ground__to__ground__projectile__motion_8cpp.html#aba1d26faf6a5379c28cae458956241de" title="Convert radians to degrees." alt="" coords="227,29,400,84"/>
<area shape="rect" id="node3" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/numeric/math/sin.html#" title=" " alt="" coords="281,108,346,133"/>
</map>

View File

@@ -0,0 +1 @@
79b5b0524e8a747fec87a0ada8984d71

View File

@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 6.0.2 (20221011.1828)
-->
<!-- Title: physics::ground_to_ground_projectile_motion::time_of_flight Pages: 1 -->
<svg width="304pt" height="104pt"
viewBox="0.00 0.00 304.00 104.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 100)">
<title>physics::ground_to_ground_projectile_motion::time_of_flight</title>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title="Calculate the time of flight.">
<polygon fill="#999999" stroke="#666666" points="130,-54 0,-54 0,-13 130,-13 130,-54"/>
<text text-anchor="start" x="8" y="-42" font-family="Helvetica,sans-Serif" font-size="10.00">physics::ground_to</text>
<text text-anchor="start" x="8" y="-31" font-family="Helvetica,sans-Serif" font-size="10.00">_ground_projectile_motion</text>
<text text-anchor="middle" x="65" y="-20" font-family="Helvetica,sans-Serif" font-size="10.00">::time_of_flight</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node1 -->
<g id="edge4" class="edge">
<title>Node1&#45;&gt;Node1</title>
<path fill="none" stroke="#63b8ff" d="M34.49,-54.1C31.16,-63.65 41.33,-72 65,-72 79.79,-72 89.31,-68.74 93.56,-63.96"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="97,-64.59 95.51,-54.1 90.14,-63.23 97,-64.59"/>
</g>
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a xlink:href="../../d9/d29/ground__to__ground__projectile__motion_8cpp.html#aba1d26faf6a5379c28cae458956241de" target="_top" xlink:title="Convert radians to degrees.">
<polygon fill="white" stroke="#666666" points="296,-78 166,-78 166,-37 296,-37 296,-78"/>
<text text-anchor="start" x="174" y="-66" font-family="Helvetica,sans-Serif" font-size="10.00">physics::ground_to</text>
<text text-anchor="start" x="174" y="-55" font-family="Helvetica,sans-Serif" font-size="10.00">_ground_projectile_motion</text>
<text text-anchor="middle" x="231" y="-44" font-family="Helvetica,sans-Serif" font-size="10.00">::degrees_to_radians</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="#63b8ff" d="M130.35,-42.92C138.73,-44.14 147.37,-45.41 155.9,-46.66"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="155.44,-50.13 165.84,-48.11 156.45,-43.2 155.44,-50.13"/>
</g>
<!-- Node3 -->
<g id="node3" class="node">
<title>Node3</title>
<g id="a_node3"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/numeric/math/sin.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="255.5,-19 206.5,-19 206.5,0 255.5,0 255.5,-19"/>
<text text-anchor="middle" x="231" y="-7" font-family="Helvetica,sans-Serif" font-size="10.00">std::sin</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node3 -->
<g id="edge3" class="edge">
<title>Node1&#45;&gt;Node3</title>
<path fill="none" stroke="#63b8ff" d="M130.35,-24.08C152.91,-20.78 177.35,-17.21 196.37,-14.42"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="196.95,-17.87 206.34,-12.96 195.94,-10.95 196.95,-17.87"/>
</g>
<!-- Node2&#45;&gt;Node2 -->
<g id="edge2" class="edge">
<title>Node2&#45;&gt;Node2</title>
<path fill="none" stroke="#63b8ff" d="M200.49,-78.1C197.16,-87.65 207.33,-96 231,-96 245.79,-96 255.31,-92.74 259.56,-87.96"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="263,-88.59 261.51,-78.1 256.14,-87.23 263,-88.59"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

@@ -0,0 +1,6 @@
<map id="physics::ground_to_ground_projectile_motion::max_height" name="physics::ground_to_ground_projectile_motion::max_height">
<area shape="rect" id="node1" title="Calculate the max height of the projectile." alt="" coords="5,93,179,148"/>
<area shape="rect" id="node2" href="$d9/d29/ground__to__ground__projectile__motion_8cpp.html#aba1d26faf6a5379c28cae458956241de" title="Convert radians to degrees." alt="" coords="227,29,400,84"/>
<area shape="rect" id="node3" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/numeric/math/pow.html#" title=" " alt="" coords="277,108,349,133"/>
<area shape="rect" id="node4" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/numeric/math/sin.html#" title=" " alt="" coords="281,157,346,183"/>
</map>

View File

@@ -0,0 +1 @@
9ef12adb450cc95f4e7bf34f7d037188

View File

@@ -0,0 +1,82 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 6.0.2 (20221011.1828)
-->
<!-- Title: physics::ground_to_ground_projectile_motion::max_height Pages: 1 -->
<svg width="304pt" height="141pt"
viewBox="0.00 0.00 304.00 141.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 137)">
<title>physics::ground_to_ground_projectile_motion::max_height</title>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title="Calculate the max height of the projectile.">
<polygon fill="#999999" stroke="#666666" points="130,-67 0,-67 0,-26 130,-26 130,-67"/>
<text text-anchor="start" x="8" y="-55" font-family="Helvetica,sans-Serif" font-size="10.00">physics::ground_to</text>
<text text-anchor="start" x="8" y="-44" font-family="Helvetica,sans-Serif" font-size="10.00">_ground_projectile_motion</text>
<text text-anchor="middle" x="65" y="-33" font-family="Helvetica,sans-Serif" font-size="10.00">::max_height</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node1 -->
<g id="edge3" class="edge">
<title>Node1&#45;&gt;Node1</title>
<path fill="none" stroke="#63b8ff" d="M34.49,-67.1C31.16,-76.65 41.33,-85 65,-85 79.79,-85 89.31,-81.74 93.56,-76.96"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="97,-77.59 95.51,-67.1 90.14,-76.23 97,-77.59"/>
</g>
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a xlink:href="../../d9/d29/ground__to__ground__projectile__motion_8cpp.html#aba1d26faf6a5379c28cae458956241de" target="_top" xlink:title="Convert radians to degrees.">
<polygon fill="white" stroke="#666666" points="296,-115 166,-115 166,-74 296,-74 296,-115"/>
<text text-anchor="start" x="174" y="-103" font-family="Helvetica,sans-Serif" font-size="10.00">physics::ground_to</text>
<text text-anchor="start" x="174" y="-92" font-family="Helvetica,sans-Serif" font-size="10.00">_ground_projectile_motion</text>
<text text-anchor="middle" x="231" y="-81" font-family="Helvetica,sans-Serif" font-size="10.00">::degrees_to_radians</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="#63b8ff" d="M130.35,-65.33C138.82,-67.81 147.56,-70.37 156.18,-72.89"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="155.26,-76.27 165.84,-75.72 157.22,-69.55 155.26,-76.27"/>
</g>
<!-- Node3 -->
<g id="node3" class="node">
<title>Node3</title>
<g id="a_node3"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/numeric/math/pow.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="258,-56 204,-56 204,-37 258,-37 258,-56"/>
<text text-anchor="middle" x="231" y="-44" font-family="Helvetica,sans-Serif" font-size="10.00">std::pow</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node3 -->
<g id="edge4" class="edge">
<title>Node1&#45;&gt;Node3</title>
<path fill="none" stroke="#63b8ff" d="M130.35,-46.5C151.9,-46.5 175.16,-46.5 193.79,-46.5"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="193.89,-50 203.89,-46.5 193.89,-43 193.89,-50"/>
</g>
<!-- Node4 -->
<g id="node4" class="node">
<title>Node4</title>
<g id="a_node4"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/numeric/math/sin.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="255.5,-19 206.5,-19 206.5,0 255.5,0 255.5,-19"/>
<text text-anchor="middle" x="231" y="-7" font-family="Helvetica,sans-Serif" font-size="10.00">std::sin</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node4 -->
<g id="edge5" class="edge">
<title>Node1&#45;&gt;Node4</title>
<path fill="none" stroke="#63b8ff" d="M130.35,-31.98C152.91,-26.89 177.35,-21.38 196.37,-17.09"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="197.36,-20.45 206.34,-14.84 195.82,-13.62 197.36,-20.45"/>
</g>
<!-- Node2&#45;&gt;Node2 -->
<g id="edge2" class="edge">
<title>Node2&#45;&gt;Node2</title>
<path fill="none" stroke="#63b8ff" d="M200.49,-115.1C197.16,-124.65 207.33,-133 231,-133 245.79,-133 255.31,-129.74 259.56,-124.96"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="263,-125.59 261.51,-115.1 256.14,-124.23 263,-125.59"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@@ -0,0 +1,5 @@
<map id="test" name="test">
<area shape="rect" id="node1" title="Self&#45;test implementations." alt="" coords="5,31,49,56"/>
<area shape="rect" id="node2" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/io/manip/endl.html#" title=" " alt="" coords="101,5,173,31"/>
<area shape="rect" id="node3" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/numeric/math/round.html#" title=" " alt="" coords="97,55,177,80"/>
</map>

View File

@@ -0,0 +1 @@
6140fd5decdfba37470945ff16e13078

View File

@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 6.0.2 (20221011.1828)
-->
<!-- Title: test Pages: 1 -->
<svg width="137pt" height="64pt"
viewBox="0.00 0.00 137.00 64.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 60)">
<title>test</title>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title="Self&#45;test implementations.">
<polygon fill="#999999" stroke="#666666" points="33,-37 0,-37 0,-18 33,-18 33,-37"/>
<text text-anchor="middle" x="16.5" y="-25" font-family="Helvetica,sans-Serif" font-size="10.00">test</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/io/manip/endl.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="126,-56 72,-56 72,-37 126,-37 126,-56"/>
<text text-anchor="middle" x="99" y="-44" font-family="Helvetica,sans-Serif" font-size="10.00">std::endl</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="#63b8ff" d="M33.02,-31.16C41.25,-33.1 51.72,-35.58 61.84,-37.97"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.22,-41.41 71.75,-40.3 62.82,-34.6 61.22,-41.41"/>
</g>
<!-- Node3 -->
<g id="node3" class="node">
<title>Node3</title>
<g id="a_node3"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/numeric/math/round.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="129,-19 69,-19 69,0 129,0 129,-19"/>
<text text-anchor="middle" x="99" y="-7" font-family="Helvetica,sans-Serif" font-size="10.00">std::round</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node3 -->
<g id="edge2" class="edge">
<title>Node1&#45;&gt;Node3</title>
<path fill="none" stroke="#63b8ff" d="M33.02,-24.03C40.47,-22.36 49.76,-20.29 58.97,-18.23"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="59.84,-21.62 68.84,-16.02 58.32,-14.79 59.84,-21.62"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@@ -0,0 +1,3 @@
<map id="physics::ground_to_ground_projectile_motion::degrees_to_radians" name="physics::ground_to_ground_projectile_motion::degrees_to_radians">
<area shape="rect" id="node1" title="Convert radians to degrees." alt="" coords="5,29,179,84"/>
</map>

View File

@@ -0,0 +1 @@
0beb3096ee69cbdd8da8224b74835418

View File

@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 6.0.2 (20221011.1828)
-->
<!-- Title: physics::ground_to_ground_projectile_motion::degrees_to_radians Pages: 1 -->
<svg width="138pt" height="67pt"
viewBox="0.00 0.00 138.00 67.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 63)">
<title>physics::ground_to_ground_projectile_motion::degrees_to_radians</title>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title="Convert radians to degrees.">
<polygon fill="#999999" stroke="#666666" points="130,-41 0,-41 0,0 130,0 130,-41"/>
<text text-anchor="start" x="8" y="-29" font-family="Helvetica,sans-Serif" font-size="10.00">physics::ground_to</text>
<text text-anchor="start" x="8" y="-18" font-family="Helvetica,sans-Serif" font-size="10.00">_ground_projectile_motion</text>
<text text-anchor="middle" x="65" y="-7" font-family="Helvetica,sans-Serif" font-size="10.00">::degrees_to_radians</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node1 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node1</title>
<path fill="none" stroke="#63b8ff" d="M41.11,-41.1C38.5,-50.65 46.46,-59 65,-59 76.29,-59 83.66,-55.9 87.11,-51.32"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="90.62,-51.55 88.89,-41.1 83.72,-50.35 90.62,-51.55"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@@ -0,0 +1,6 @@
<map id="main" name="main">
<area shape="rect" id="node1" title="Main function." alt="" coords="5,31,56,56"/>
<area shape="rect" id="node2" href="$d9/d29/ground__to__ground__projectile__motion_8cpp.html#aa8dca7b867074164d5f45b0f3851269d" title="Self&#45;test implementations." alt="" coords="104,31,148,56"/>
<area shape="rect" id="node3" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/io/manip/endl.html#" title=" " alt="" coords="200,5,272,31"/>
<area shape="rect" id="node4" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/numeric/math/round.html#" title=" " alt="" coords="196,55,276,80"/>
</map>

View File

@@ -0,0 +1 @@
13ddb6422f206f1a35f92cc1eaaad925

View File

@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 6.0.2 (20221011.1828)
-->
<!-- Title: main Pages: 1 -->
<svg width="211pt" height="64pt"
viewBox="0.00 0.00 211.00 64.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 60)">
<title>main</title>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title="Main function.">
<polygon fill="#999999" stroke="#666666" points="38,-37 0,-37 0,-18 38,-18 38,-37"/>
<text text-anchor="middle" x="19" y="-25" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a xlink:href="../../d9/d29/ground__to__ground__projectile__motion_8cpp.html#aa8dca7b867074164d5f45b0f3851269d" target="_top" xlink:title="Self&#45;test implementations.">
<polygon fill="white" stroke="#666666" points="107,-37 74,-37 74,-18 107,-18 107,-37"/>
<text text-anchor="middle" x="90.5" y="-25" font-family="Helvetica,sans-Serif" font-size="10.00">test</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="#63b8ff" d="M38.26,-27.5C46.07,-27.5 55.31,-27.5 63.79,-27.5"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="63.95,-31 73.95,-27.5 63.95,-24 63.95,-31"/>
</g>
<!-- Node3 -->
<g id="node3" class="node">
<title>Node3</title>
<g id="a_node3"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/io/manip/endl.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="200,-56 146,-56 146,-37 200,-37 200,-56"/>
<text text-anchor="middle" x="173" y="-44" font-family="Helvetica,sans-Serif" font-size="10.00">std::endl</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node3 -->
<g id="edge2" class="edge">
<title>Node2&#45;&gt;Node3</title>
<path fill="none" stroke="#63b8ff" d="M107.02,-31.16C115.25,-33.1 125.72,-35.58 135.84,-37.97"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="135.22,-41.41 145.75,-40.3 136.82,-34.6 135.22,-41.41"/>
</g>
<!-- Node4 -->
<g id="node4" class="node">
<title>Node4</title>
<g id="a_node4"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/numeric/math/round.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="203,-19 143,-19 143,0 203,0 203,-19"/>
<text text-anchor="middle" x="173" y="-7" font-family="Helvetica,sans-Serif" font-size="10.00">std::round</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node4 -->
<g id="edge3" class="edge">
<title>Node2&#45;&gt;Node4</title>
<path fill="none" stroke="#63b8ff" d="M107.02,-24.03C114.47,-22.36 123.76,-20.29 132.97,-18.23"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="133.84,-21.62 142.84,-16.02 132.32,-14.79 133.84,-21.62"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.9 KiB