<trclass="memitem:a991c620839f5fa9fcfe7e503b8ab0008"><tdclass="memItemLeft"align="right"valign="top">static constexpr double </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classEule_1_1Math.html#a991c620839f5fa9fcfe7e503b8ab0008">Max</a> (const double a, const double b)</td></tr>
<trclass="memdesc:a991c620839f5fa9fcfe7e503b8ab0008"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Will return the bigger of two values. <ahref="classEule_1_1Math.html#a991c620839f5fa9fcfe7e503b8ab0008">More...</a><br/></td></tr>
<trclass="memitem:aa4d3c52cb09984ec567a9961ff7e3f02"><tdclass="memItemLeft"align="right"valign="top">static constexpr double </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classEule_1_1Math.html#aa4d3c52cb09984ec567a9961ff7e3f02">Min</a> (const double a, const double b)</td></tr>
<trclass="memdesc:aa4d3c52cb09984ec567a9961ff7e3f02"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Will return the smaller of two values. <ahref="classEule_1_1Math.html#aa4d3c52cb09984ec567a9961ff7e3f02">More...</a><br/></td></tr>
<trclass="memdesc:a73947ee95912f0a06359fc5004bfc840"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Will return <code>v</code>, but at least <code>min</code>, and at most <code>max</code><ahref="classEule_1_1Math.html#a73947ee95912f0a06359fc5004bfc840">More...</a><br/></td></tr>
<trclass="memitem:a991f62401991014de20aca0fda9f9ef7"><tdclass="memItemLeft"align="right"valign="top">static constexpr double </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classEule_1_1Math.html#a991f62401991014de20aca0fda9f9ef7">Lerp</a> (double a, double b, double t)</td></tr>
<trclass="memdesc:a991f62401991014de20aca0fda9f9ef7"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Will return the linear interpolation between <code>a</code> and <code>b</code> by <code>t</code><ahref="classEule_1_1Math.html#a991f62401991014de20aca0fda9f9ef7">More...</a><br/></td></tr>
<trclass="memdesc:ab9ccf4aa730ef825faf224445c86ab25"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Will return the absolute value of <code>a</code><ahref="classEule_1_1Math.html#ab9ccf4aa730ef825faf224445c86ab25">More...</a><br/></td></tr>
<trclass="memdesc:ac928b1e9cde5ac60f5fdc1ba466305ff"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Compares two double values with a given accuracy. <ahref="classEule_1_1Math.html#ac928b1e9cde5ac60f5fdc1ba466305ff">More...</a><br/></td></tr>
<trclass="memdesc:a6aa6d6c804f995a089779219e5136e4f"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Will return a random double between <code>0</code> and <code>1</code><ahref="classEule_1_1Math.html#a6aa6d6c804f995a089779219e5136e4f">More...</a><br/></td></tr>
<trclass="memdesc:ad38d9a50e08cd02bb35161cc3bd77b26"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Will return a random unsigned integer. <ahref="classEule_1_1Math.html#ad38d9a50e08cd02bb35161cc3bd77b26">More...</a><br/></td></tr>
<trclass="memdesc:ab8d66e39e794d89594c50690ccc92c60"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Will return a random integer. <ahref="classEule_1_1Math.html#ab8d66e39e794d89594c50690ccc92c60">More...</a><br/></td></tr>
<trclass="memdesc:a48ca8451f9803ce35d2a35cfb83d8ae9"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Will return a random double within a range <br/>
These bounds are INCLUSIVE! <ahref="classEule_1_1Math.html#a48ca8451f9803ce35d2a35cfb83d8ae9">More...</a><br/></td></tr>
<trclass="memitem:adfc55be8cb68aba351374f045f29a2ad"><tdclass="memItemLeft"align="right"valign="top">static int </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classEule_1_1Math.html#adfc55be8cb68aba351374f045f29a2ad">RandomIntRange</a> (const int max, const int min)</td></tr>
<trclass="memdesc:adfc55be8cb68aba351374f045f29a2ad"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Will return a random integer within a range. <ahref="classEule_1_1Math.html#adfc55be8cb68aba351374f045f29a2ad">More...</a><br/></td></tr>
<trclass="memdesc:a60bffec38a861b7701fc90bd6f1a11d6"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Will 'roll' a dice, returning <code>true</code> \(100 * chance\) percent of the time. <ahref="classEule_1_1Math.html#a60bffec38a861b7701fc90bd6f1a11d6">More...</a><br/></td></tr>
<trclass="memdesc:a1b0fb72c51751470f7f819b20a5b3b3f"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Kind of like \(sin(counter)\), but it oscillates over \([a,b]\) instead of \([-1,1]\), by a given speed. <ahref="classEule_1_1Math.html#a1b0fb72c51751470f7f819b20a5b3b3f">More...</a><br/></td></tr>
<pclass="definition">Definition at line <aclass="el"href="Math_8h_source.html#l00008">8</a> of file <aclass="el"href="Math_8h_source.html">Math.h</a>.</p>
</div><h2class="groupheader">Member Function Documentation</h2>
<p>Will return the absolute value of <code>a</code></p>
<pclass="definition">Definition at line <aclass="el"href="Math_8h_source.html#l00092">92</a> of file <aclass="el"href="Math_8h_source.html">Math.h</a>.</p>
<p>Will return <code>v</code>, but at least <code>min</code>, and at most <code>max</code></p>
<pclass="definition">Definition at line <aclass="el"href="Math_8h_source.html#l00081">81</a> of file <aclass="el"href="Math_8h_source.html">Math.h</a>.</p>
<p>Will return the linear interpolation between <code>a</code> and <code>b</code> by <code>t</code></p>
<pclass="definition">Definition at line <aclass="el"href="Math_8h_source.html#l00086">86</a> of file <aclass="el"href="Math_8h_source.html">Math.h</a>.</p>
<pclass="definition">Definition at line <aclass="el"href="Math_8h_source.html#l00071">71</a> of file <aclass="el"href="Math_8h_source.html">Math.h</a>.</p>
<pclass="definition">Definition at line <aclass="el"href="Math_8h_source.html#l00076">76</a> of file <aclass="el"href="Math_8h_source.html">Math.h</a>.</p>
<p>Kind of like \(sin(counter)\), but it oscillates over \([a,b]\) instead of \([-1,1]\), by a given speed. </p>
<p><br/>
Given that \(speed = 1\), the result will always be <code>a</code> if <code>counter</code> is even, and <code>b</code> if <code>counter</code> is uneven. <br/>
If <code>counter</code> is a rational, the result will oscillate between <code>a</code> and <code>b</code>, like <code>sin()</code> does. <br/>
If you increase <code>speed</code>, the oscillation frequency will increase. Meaning \(speed = 2\) would result in \(counter=0.5\) returning <code>b</code>. </p>
<pclass="definition">Definition at line <aclass="el"href="Math_8cpp_source.html#l00068">68</a> of file <aclass="el"href="Math_8cpp_source.html">Math.cpp</a>.</p>
<p>Will return a random double between <code>0</code> and <code>1</code></p>
<pclass="definition">Definition at line <aclass="el"href="Math_8cpp_source.html#l00029">29</a> of file <aclass="el"href="Math_8cpp_source.html">Math.cpp</a>.</p>
<p>Will 'roll' a dice, returning <code>true</code> \(100 * chance\) percent of the time. </p>
<pclass="definition">Definition at line <aclass="el"href="Math_8cpp_source.html#l00073">73</a> of file <aclass="el"href="Math_8cpp_source.html">Math.cpp</a>.</p>
<pclass="definition">Definition at line <aclass="el"href="Math_8cpp_source.html#l00045">45</a> of file <aclass="el"href="Math_8cpp_source.html">Math.cpp</a>.</p>
<divclass="line"><aname="l00049"></a><spanclass="lineno"> 49</span> <spanclass="comment">// Since this is supposed to return a random value anyways,</span></div>
<divclass="line"><aname="l00050"></a><spanclass="lineno"> 50</span> <spanclass="comment">// we can let the random uint overflow without any problems.</span></div>
<p>Will return a random integer within a range. </p>
<p>This is faster than <code>(int)RandomRange(x,y)</code><br/>
These bounds are INCLUSIVE! </p>
<pclass="definition">Definition at line <aclass="el"href="Math_8cpp_source.html#l00063">63</a> of file <aclass="el"href="Math_8cpp_source.html">Math.cpp</a>.</p>
<p>Will return a random double within a range <br/>
These bounds are INCLUSIVE! </p>
<pclass="definition">Definition at line <aclass="el"href="Math_8cpp_source.html#l00056">56</a> of file <aclass="el"href="Math_8cpp_source.html">Math.cpp</a>.</p>
<pclass="definition">Definition at line <aclass="el"href="Math_8cpp_source.html#l00037">37</a> of file <aclass="el"href="Math_8cpp_source.html">Math.cpp</a>.</p>
<divclass="ttc"id="aConstants_8h_html_a299aabc5fc8285cbf99025330a3d0d0d"><divclass="ttname"><ahref="Constants_8h.html#a299aabc5fc8285cbf99025330a3d0d0d">PI</a></div><divclass="ttdeci">static constexpr double PI</div><divclass="ttdoc">Pi up to 50 decimal places.</div><divclass="ttdef"><b>Definition:</b><ahref="Constants_8h_source.html#l00006">Constants.h:6</a></div></div>
<divclass="ttc"id="aclassEule_1_1Math_html_a991c620839f5fa9fcfe7e503b8ab0008"><divclass="ttname"><ahref="classEule_1_1Math.html#a991c620839f5fa9fcfe7e503b8ab0008">Eule::Math::Max</a></div><divclass="ttdeci">static constexpr double Max(const double a, const double b)</div><divclass="ttdoc">Will return the bigger of two values.</div><divclass="ttdef"><b>Definition:</b><ahref="Math_8h_source.html#l00071">Math.h:71</a></div></div>
<divclass="ttc"id="aclassEule_1_1Math_html_aa4d3c52cb09984ec567a9961ff7e3f02"><divclass="ttname"><ahref="classEule_1_1Math.html#aa4d3c52cb09984ec567a9961ff7e3f02">Eule::Math::Min</a></div><divclass="ttdeci">static constexpr double Min(const double a, const double b)</div><divclass="ttdoc">Will return the smaller of two values.</div><divclass="ttdef"><b>Definition:</b><ahref="Math_8h_source.html#l00076">Math.h:76</a></div></div>
<divclass="ttc"id="aclassEule_1_1Math_html_a6aa6d6c804f995a089779219e5136e4f"><divclass="ttname"><ahref="classEule_1_1Math.html#a6aa6d6c804f995a089779219e5136e4f">Eule::Math::Random</a></div><divclass="ttdeci">static double Random()</div><divclass="ttdoc">Will return a random double between 0 and 1</div><divclass="ttdef"><b>Definition:</b><ahref="Math_8cpp_source.html#l00029">Math.cpp:29</a></div></div>