123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227 |
- <!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">
- <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.9.1"/>
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
- <title>openPilotLog: src/functions/calc.h Source File</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>
- <link href="doxygen.css" rel="stylesheet" type="text/css" />
- <link href="custom_dark_theme.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="projectlogo"><img alt="Logo" src="icon_main.png"/></td>
- <td id="projectalign" style="padding-left: 0.5em;">
- <div id="projectname">openPilotLog
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.9.1 -->
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- var searchBox = new SearchBox("searchBox", "search",false,'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:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- $(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:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- $(document).ready(function(){initNavTree('calc_8h_source.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">
- <iframe src="javascript:void(0)" frameborder="0"
- name="MSearchResults" id="MSearchResults">
- </iframe>
- </div>
- <div class="header">
- <div class="headertitle">
- <div class="title">calc.h</div> </div>
- </div><!--header-->
- <div class="contents">
- <div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div>
- <div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> *openPilotLog - A FOSS Pilot Logbook Application</span></div>
- <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> *Copyright (C) 2020-2022 Felix Turowsky</span></div>
- <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> *</span></div>
- <div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> *This program is free software: you can redistribute it and/or modify</span></div>
- <div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> *it under the terms of the GNU General Public License as published by</span></div>
- <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> *the Free Software Foundation, either version 3 of the License, or</span></div>
- <div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> *(at your option) any later version.</span></div>
- <div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> *</span></div>
- <div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> *This program is distributed in the hope that it will be useful,</span></div>
- <div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> *but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
- <div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span></div>
- <div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> *GNU General Public License for more details.</span></div>
- <div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> *</span></div>
- <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> *You should have received a copy of the GNU General Public License</span></div>
- <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> *along with this program. If not, see <https://www.gnu.org/licenses/>.</span></div>
- <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> */</span></div>
- <div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#ifndef CALC_H</span></div>
- <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#define CALC_H</span></div>
- <div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  </div>
- <div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#ifdef _MSC_VER</span></div>
- <div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#define _USE_MATH_DEFINES</span></div>
- <div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#endif</span></div>
- <div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <cmath></span></div>
- <div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <QDateTime></span></div>
- <div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <QDebug></span></div>
- <div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "src/functions/time.h"</span></div>
- <div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="namespace_o_p_l_1_1_calc.html"> 34</a></span> <span class="keyword">namespace </span><a class="code" href="namespace_o_p_l_1_1_calc.html">OPL::Calc</a> {</div>
- <div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  </div>
- <div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="namespace_o_p_l_1_1_calc.html#ae4b929bd19437f7e9e5da48e484c3d78"> 41</a></span> <span class="keyword">inline</span> <span class="keywordtype">double</span> <a class="code" href="namespace_o_p_l_1_1_calc.html#ae4b929bd19437f7e9e5da48e484c3d78">radToDeg</a>(<span class="keywordtype">double</span> rad)</div>
- <div class="line"><a name="l00042"></a><span class="lineno"> 42</span> {</div>
- <div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordtype">double</span> deg = rad * (180 / M_PI);</div>
- <div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keywordflow">return</span> deg;</div>
- <div class="line"><a name="l00045"></a><span class="lineno"> 45</span> }</div>
- <div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  </div>
- <div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="namespace_o_p_l_1_1_calc.html#a19aa0f77d99530368d804fb5aac7095c"> 52</a></span> <span class="keyword">inline</span> <span class="keywordtype">double</span> <a class="code" href="namespace_o_p_l_1_1_calc.html#a19aa0f77d99530368d804fb5aac7095c">degToRad</a>(<span class="keywordtype">double</span> deg)</div>
- <div class="line"><a name="l00053"></a><span class="lineno"> 53</span> {</div>
- <div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keywordtype">double</span> rad = deg * (M_PI / 180);</div>
- <div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keywordflow">return</span> rad;</div>
- <div class="line"><a name="l00056"></a><span class="lineno"> 56</span> }</div>
- <div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  </div>
- <div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="namespace_o_p_l_1_1_calc.html#a54af04cfc491c441e8f000c8a9c85a5d"> 63</a></span> <span class="keyword">inline</span> <span class="keywordtype">double</span> <a class="code" href="namespace_o_p_l_1_1_calc.html#a54af04cfc491c441e8f000c8a9c85a5d">radToNauticalMiles</a>(<span class="keywordtype">double</span> rad)</div>
- <div class="line"><a name="l00064"></a><span class="lineno"> 64</span> {</div>
- <div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordtype">double</span> nm = rad * 3440.06479482;</div>
- <div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keywordflow">return</span> nm;</div>
- <div class="line"><a name="l00067"></a><span class="lineno"> 67</span> }</div>
- <div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  </div>
- <div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="keywordtype">double</span> <a class="code" href="namespace_o_p_l_1_1_calc.html#af98171551ab57f5a1857f84fa31cd64e">greatCircleDistance</a>(<span class="keywordtype">double</span> lat1, <span class="keywordtype">double</span> lon1, <span class="keywordtype">double</span> lat2, <span class="keywordtype">double</span> lon2);</div>
- <div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  </div>
- <div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="keywordtype">double</span> <a class="code" href="namespace_o_p_l_1_1_calc.html#a0d6ee1592d78a15f8a37fb5ba16b2840">greatCircleDistanceBetweenAirports</a>(<span class="keyword">const</span> QString &dept, <span class="keyword">const</span> QString &dest);</div>
- <div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  </div>
- <div class="line"><a name="l00098"></a><span class="lineno"> 98</span> QVector<QVector<double>> <a class="code" href="namespace_o_p_l_1_1_calc.html#a800630d9c6833c9707bdf3f8dfbdd63e">intermediatePointsOnGreatCircle</a>(<span class="keywordtype">double</span> lat1,</div>
- <div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keywordtype">double</span> lon1,</div>
- <div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keywordtype">double</span> lat2,</div>
- <div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordtype">double</span> lon2,</div>
- <div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keywordtype">int</span> tblk);</div>
- <div class="line"><a name="l00119"></a><span class="lineno"> 119</span> <span class="keywordtype">double</span> <a class="code" href="namespace_o_p_l_1_1_calc.html#aad346a109dd40d2ce9363577386ec4e2">solarElevation</a>(QDateTime utc_time_point, <span class="keywordtype">double</span> lat, <span class="keywordtype">double</span> lon);</div>
- <div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  </div>
- <div class="line"><a name="l00131"></a><span class="lineno"> 131</span> <span class="keywordtype">int</span> <a class="code" href="namespace_o_p_l_1_1_calc.html#a12ab4061d7d8849b12bec02ada5cdcd7">calculateNightTime</a>(<span class="keyword">const</span> QString &dept, <span class="keyword">const</span> QString &dest, QDateTime departureTime, <span class="keywordtype">int</span> tblk, <span class="keywordtype">int</span> nightAngle);</div>
- <div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  </div>
- <div class="line"><a name="l00133"></a><span class="lineno"> 133</span> <span class="keywordtype">bool</span> isNight(<span class="keyword">const</span> QString &icao, QDateTime event_time, <span class="keywordtype">int</span> night_angle);</div>
- <div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  </div>
- <div class="line"><a name="l00135"></a><span class="lineno"> 135</span> QString <a class="code" href="namespace_o_p_l_1_1_calc.html#a268b46842ac1389c26b1631da6bb18b0">formatTimeInput</a>(QString user_input);</div>
- <div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  </div>
- <div class="line"><a name="l00137"></a><span class="lineno"> 137</span> <span class="keywordtype">void</span> <a class="code" href="namespace_o_p_l_1_1_calc.html#a0b69f903cde75ff19eff54d880bb8c33">updateAutoTimes</a>(<span class="keywordtype">int</span> acft_id);</div>
- <div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  </div>
- <div class="line"><a name="l00139"></a><span class="lineno"> 139</span> <span class="keywordtype">void</span> <a class="code" href="namespace_o_p_l_1_1_calc.html#a1e7c96710acec446476bb110d24f8a43">updateNightTimes</a>();</div>
- <div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  </div>
- <div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="struct_o_p_l_1_1_calc_1_1_night_time_values.html"> 144</a></span> <span class="keyword">struct </span><a class="code" href="struct_o_p_l_1_1_calc_1_1_night_time_values.html">NightTimeValues</a>{</div>
- <div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <a class="code" href="struct_o_p_l_1_1_calc_1_1_night_time_values.html">NightTimeValues</a>() = <span class="keyword">delete</span>;</div>
- <div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <a class="code" href="struct_o_p_l_1_1_calc_1_1_night_time_values.html">NightTimeValues</a>(<span class="keyword">const</span> QString& dept, <span class="keyword">const</span> QString& dest, <span class="keyword">const</span> QDateTime& departure_time, <span class="keywordtype">int</span> block_minutes, <span class="keywordtype">int</span> night_angle)</div>
- <div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  {</div>
- <div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  nightMinutes = <a class="code" href="namespace_o_p_l_1_1_calc.html#a12ab4061d7d8849b12bec02ada5cdcd7">calculateNightTime</a>(dept, dest, departure_time, block_minutes, night_angle);</div>
- <div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  </div>
- <div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  nightTime = OPL::Time::qTimefromMinutes(nightMinutes);</div>
- <div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  totalTime = OPL::Time::qTimefromMinutes(block_minutes);</div>
- <div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  </div>
- <div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <span class="keywordflow">if</span> (nightMinutes == 0) { <span class="comment">// all day</span></div>
- <div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  takeOffNight = <span class="keyword">false</span>;</div>
- <div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  landingNight = <span class="keyword">false</span>;</div>
- <div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  }</div>
- <div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (nightMinutes == block_minutes) { <span class="comment">// all night</span></div>
- <div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  takeOffNight = <span class="keyword">true</span>;</div>
- <div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  landingNight = <span class="keyword">true</span>;</div>
- <div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  } <span class="keywordflow">else</span> {</div>
- <div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <span class="keywordflow">if</span>(isNight(dept, departure_time, night_angle))</div>
- <div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  takeOffNight = <span class="keyword">true</span>;</div>
- <div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="keywordflow">else</span></div>
- <div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  takeOffNight = <span class="keyword">false</span>;</div>
- <div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <span class="keywordflow">if</span>(isNight(dest, departure_time.addSecs(block_minutes * 60), night_angle))</div>
- <div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  landingNight = <span class="keyword">true</span>;</div>
- <div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <span class="keywordflow">else</span></div>
- <div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  landingNight = <span class="keyword">false</span>;</div>
- <div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  }</div>
- <div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  </div>
- <div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  };</div>
- <div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <a class="code" href="struct_o_p_l_1_1_calc_1_1_night_time_values.html">NightTimeValues</a>(<span class="keywordtype">bool</span> to_night, <span class="keywordtype">bool</span> ldg_night, <span class="keywordtype">int</span> night_minutes, QTime night_time, QTime total_time)</div>
- <div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  : takeOffNight(to_night), landingNight(ldg_night), nightMinutes(night_minutes), nightTime(night_time), totalTime(total_time){};</div>
- <div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <span class="keywordtype">bool</span> takeOffNight;</div>
- <div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <span class="keywordtype">bool</span> landingNight;</div>
- <div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <span class="keywordtype">int</span> nightMinutes;</div>
- <div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  QTime nightTime;</div>
- <div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  QTime totalTime;</div>
- <div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  </div>
- <div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <span class="keyword">inline</span> <span class="keywordtype">bool</span> isAllDay() {<span class="keywordflow">return</span> (!takeOffNight && !landingNight);}</div>
- <div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <span class="keyword">inline</span> <span class="keywordtype">bool</span> isAllNight() {<span class="keywordflow">return</span> ( takeOffNight && landingNight);}</div>
- <div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <span class="keyword">inline</span> <span class="keywordtype">bool</span> isDayToNight() {<span class="keywordflow">return</span> (!takeOffNight && landingNight);}</div>
- <div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  <span class="keyword">inline</span> <span class="keywordtype">bool</span> isNightToDay() {<span class="keywordflow">return</span> ( takeOffNight && !landingNight);}</div>
- <div class="line"><a name="l00184"></a><span class="lineno"> 184</span> };</div>
- <div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  </div>
- <div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  </div>
- <div class="line"><a name="l00187"></a><span class="lineno"> 187</span> } <span class="comment">// namespace OPL::Calc</span></div>
- <div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  </div>
- <div class="line"><a name="l00189"></a><span class="lineno"> 189</span> <span class="preprocessor">#endif </span><span class="comment">// CALC_H</span></div>
- <div class="ttc" id="anamespace_o_p_l_1_1_calc_html"><div class="ttname"><a href="namespace_o_p_l_1_1_calc.html">OPL::Calc</a></div><div class="ttdoc">The ACalc namespace provides various functions for calculations that are performed outside of the dat...</div><div class="ttdef"><b>Definition:</b> calc.h:34</div></div>
- <div class="ttc" id="anamespace_o_p_l_1_1_calc_html_a0b69f903cde75ff19eff54d880bb8c33"><div class="ttname"><a href="namespace_o_p_l_1_1_calc.html#a0b69f903cde75ff19eff54d880bb8c33">OPL::Calc::updateAutoTimes</a></div><div class="ttdeci">void updateAutoTimes(int acft_id)</div><div class="ttdoc">OPL::Calc::updateAutoTimes When the details of an aircraft are changed, this function recalculates de...</div><div class="ttdef"><b>Definition:</b> calc.cpp:301</div></div>
- <div class="ttc" id="anamespace_o_p_l_1_1_calc_html_a0d6ee1592d78a15f8a37fb5ba16b2840"><div class="ttname"><a href="namespace_o_p_l_1_1_calc.html#a0d6ee1592d78a15f8a37fb5ba16b2840">OPL::Calc::greatCircleDistanceBetweenAirports</a></div><div class="ttdeci">double greatCircleDistanceBetweenAirports(const QString &dept, const QString &dest)</div><div class="ttdoc">Opl::Calc::greatCircleDistanceBetweenAirports Calculates Great Circle distance between two coordinate...</div><div class="ttdef"><b>Definition:</b> calc.cpp:103</div></div>
- <div class="ttc" id="anamespace_o_p_l_1_1_calc_html_a12ab4061d7d8849b12bec02ada5cdcd7"><div class="ttname"><a href="namespace_o_p_l_1_1_calc.html#a12ab4061d7d8849b12bec02ada5cdcd7">OPL::Calc::calculateNightTime</a></div><div class="ttdeci">int calculateNightTime(const QString &dept, const QString &dest, QDateTime departureTime, int tblk, int nightAngle)</div><div class="ttdoc">Calculates which portion of a flight was conducted in night conditions.</div><div class="ttdef"><b>Definition:</b> calc.cpp:226</div></div>
- <div class="ttc" id="anamespace_o_p_l_1_1_calc_html_a19aa0f77d99530368d804fb5aac7095c"><div class="ttname"><a href="namespace_o_p_l_1_1_calc.html#a19aa0f77d99530368d804fb5aac7095c">OPL::Calc::degToRad</a></div><div class="ttdeci">double degToRad(double deg)</div><div class="ttdoc">degToRad Converts degrees to radians</div><div class="ttdef"><b>Definition:</b> calc.h:52</div></div>
- <div class="ttc" id="anamespace_o_p_l_1_1_calc_html_a1e7c96710acec446476bb110d24f8a43"><div class="ttname"><a href="namespace_o_p_l_1_1_calc.html#a1e7c96710acec446476bb110d24f8a43">OPL::Calc::updateNightTimes</a></div><div class="ttdeci">void updateNightTimes()</div><div class="ttdoc">OPL::Calc::updateNightTimes updates the night times in the database, used when changing night angle s...</div><div class="ttdef"><b>Definition:</b> calc.cpp:344</div></div>
- <div class="ttc" id="anamespace_o_p_l_1_1_calc_html_a268b46842ac1389c26b1631da6bb18b0"><div class="ttname"><a href="namespace_o_p_l_1_1_calc.html#a268b46842ac1389c26b1631da6bb18b0">OPL::Calc::formatTimeInput</a></div><div class="ttdeci">QString formatTimeInput(QString user_input)</div><div class="ttdoc">OPL::Calc::formatTimeInput verifies user input and formats to hh:mm if the output is not a valid time...</div><div class="ttdef"><b>Definition:</b> calc.cpp:31</div></div>
- <div class="ttc" id="anamespace_o_p_l_1_1_calc_html_a54af04cfc491c441e8f000c8a9c85a5d"><div class="ttname"><a href="namespace_o_p_l_1_1_calc.html#a54af04cfc491c441e8f000c8a9c85a5d">OPL::Calc::radToNauticalMiles</a></div><div class="ttdeci">double radToNauticalMiles(double rad)</div><div class="ttdoc">radToNauticalMiles Convert Radians to nautical miles</div><div class="ttdef"><b>Definition:</b> calc.h:63</div></div>
- <div class="ttc" id="anamespace_o_p_l_1_1_calc_html_a800630d9c6833c9707bdf3f8dfbdd63e"><div class="ttname"><a href="namespace_o_p_l_1_1_calc.html#a800630d9c6833c9707bdf3f8dfbdd63e">OPL::Calc::intermediatePointsOnGreatCircle</a></div><div class="ttdeci">QVector< QVector< double > > intermediatePointsOnGreatCircle(double lat1, double lon1, double lat2, double lon2, int tblk)</div><div class="ttdoc">Calculates a list of points (lat,lon) along the Great Circle between two points. The points are space...</div><div class="ttdef"><b>Definition:</b> calc.cpp:133</div></div>
- <div class="ttc" id="anamespace_o_p_l_1_1_calc_html_aad346a109dd40d2ce9363577386ec4e2"><div class="ttname"><a href="namespace_o_p_l_1_1_calc.html#aad346a109dd40d2ce9363577386ec4e2">OPL::Calc::solarElevation</a></div><div class="ttdeci">double solarElevation(QDateTime utc_time_point, double lat, double lon)</div><div class="ttdoc">Calculates solar elevation angle for a given point in time and latitude/longitude coordinates.</div><div class="ttdef"><b>Definition:</b> calc.cpp:167</div></div>
- <div class="ttc" id="anamespace_o_p_l_1_1_calc_html_ae4b929bd19437f7e9e5da48e484c3d78"><div class="ttname"><a href="namespace_o_p_l_1_1_calc.html#ae4b929bd19437f7e9e5da48e484c3d78">OPL::Calc::radToDeg</a></div><div class="ttdeci">double radToDeg(double rad)</div><div class="ttdoc">radToDeg Converts radians to degrees</div><div class="ttdef"><b>Definition:</b> calc.h:41</div></div>
- <div class="ttc" id="anamespace_o_p_l_1_1_calc_html_af98171551ab57f5a1857f84fa31cd64e"><div class="ttname"><a href="namespace_o_p_l_1_1_calc.html#af98171551ab57f5a1857f84fa31cd64e">OPL::Calc::greatCircleDistance</a></div><div class="ttdeci">double greatCircleDistance(double lat1, double lon1, double lat2, double lon2)</div><div class="ttdoc">greatCircleDistance Calculates Great Circle distance between two coordinates, return in Radians.</div><div class="ttdef"><b>Definition:</b> calc.cpp:84</div></div>
- <div class="ttc" id="astruct_o_p_l_1_1_calc_1_1_night_time_values_html"><div class="ttname"><a href="struct_o_p_l_1_1_calc_1_1_night_time_values.html">OPL::Calc::NightTimeValues</a></div><div class="ttdoc">The NightTimeValues struct encapsulates values relating to night time that are needed by the NewFligh...</div><div class="ttdef"><b>Definition:</b> calc.h:144</div></div>
- </div><!-- fragment --></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_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_e823141bb13a34caac0c96ccd0d33fcf.html">functions</a></li><li class="navelem"><b>calc.h</b></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.1 </li>
- </ul>
- </div>
- </body>
- </html>
|