<ahref="Math_8h.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> <spanclass="preprocessor">#pragma once</span></div>
<divclass="line"><aname="l00068"></a><spanclass="lineno"> 68</span> <spanclass="comment">/* These are just the inline methods. They have to lie in the header file. */</span></div>
<divclass="line"><aname="l00069"></a><spanclass="lineno"> 69</span> <spanclass="comment">/* The more sophisticated methods are in the .cpp */</span></div>
<divclass="ttc"id="aclassEule_1_1Math_html_a60bffec38a861b7701fc90bd6f1a11d6"><divclass="ttname"><ahref="classEule_1_1Math.html#a60bffec38a861b7701fc90bd6f1a11d6">Eule::Math::RandomChance</a></div><divclass="ttdeci">static bool RandomChance(const double chance)</div><divclass="ttdoc">Will 'roll' a dice, returning true percent of the time.</div><divclass="ttdef"><b>Definition:</b><ahref="Math_8cpp_source.html#l00073">Math.cpp:73</a></div></div>
<divclass="ttc"id="aclassEule_1_1Math_html_ab9ccf4aa730ef825faf224445c86ab25"><divclass="ttname"><ahref="classEule_1_1Math.html#ab9ccf4aa730ef825faf224445c86ab25">Eule::Math::Abs</a></div><divclass="ttdeci">static constexpr double Abs(const double a)</div><divclass="ttdoc">Will return the absolute value of a</div><divclass="ttdef"><b>Definition:</b><ahref="Math_8h_source.html#l00092">Math.h:92</a></div></div>
<divclass="ttc"id="aclassEule_1_1Math_html_a48ca8451f9803ce35d2a35cfb83d8ae9"><divclass="ttname"><ahref="classEule_1_1Math.html#a48ca8451f9803ce35d2a35cfb83d8ae9">Eule::Math::RandomRange</a></div><divclass="ttdeci">static double RandomRange(const double min, const double max)</div><divclass="ttdoc">Will return a random double within a range These bounds are INCLUSIVE!</div><divclass="ttdef"><b>Definition:</b><ahref="Math_8cpp_source.html#l00056">Math.cpp:56</a></div></div>
<divclass="ttc"id="aclassEule_1_1Math_html_a991f62401991014de20aca0fda9f9ef7"><divclass="ttname"><ahref="classEule_1_1Math.html#a991f62401991014de20aca0fda9f9ef7">Eule::Math::Lerp</a></div><divclass="ttdeci">static constexpr double Lerp(double a, double b, double t)</div><divclass="ttdoc">Will return the linear interpolation between a and b by t</div><divclass="ttdef"><b>Definition:</b><ahref="Math_8h_source.html#l00086">Math.h:86</a></div></div>
<divclass="ttc"id="aclassEule_1_1Math_html_ab8d66e39e794d89594c50690ccc92c60"><divclass="ttname"><ahref="classEule_1_1Math.html#ab8d66e39e794d89594c50690ccc92c60">Eule::Math::RandomInt</a></div><divclass="ttdeci">static unsigned int RandomInt()</div><divclass="ttdoc">Will return a random integer.</div><divclass="ttdef"><b>Definition:</b><ahref="Math_8cpp_source.html#l00045">Math.cpp:45</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_a73947ee95912f0a06359fc5004bfc840"><divclass="ttname"><ahref="classEule_1_1Math.html#a73947ee95912f0a06359fc5004bfc840">Eule::Math::Clamp</a></div><divclass="ttdeci">static constexpr double Clamp(const double v, const double min, const double max)</div><divclass="ttdoc">Will return v, but at least min, and at most max</div><divclass="ttdef"><b>Definition:</b><ahref="Math_8h_source.html#l00081">Math.h:81</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_adfc55be8cb68aba351374f045f29a2ad"><divclass="ttname"><ahref="classEule_1_1Math.html#adfc55be8cb68aba351374f045f29a2ad">Eule::Math::RandomIntRange</a></div><divclass="ttdeci">static int RandomIntRange(const int max, const int min)</div><divclass="ttdoc">Will return a random integer within a range.</div><divclass="ttdef"><b>Definition:</b><ahref="Math_8cpp_source.html#l00063">Math.cpp:63</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>
<divclass="ttc"id="aclassEule_1_1Math_html_ac928b1e9cde5ac60f5fdc1ba466305ff"><divclass="ttname"><ahref="classEule_1_1Math.html#ac928b1e9cde5ac60f5fdc1ba466305ff">Eule::Math::Similar</a></div><divclass="ttdeci">static constexpr bool Similar(const double a, const double b, const double epsilon=0.00001)</div><divclass="ttdoc">Compares two double values with a given accuracy.</div></div>
<divclass="ttc"id="aclassEule_1_1Math_html_ad38d9a50e08cd02bb35161cc3bd77b26"><divclass="ttname"><ahref="classEule_1_1Math.html#ad38d9a50e08cd02bb35161cc3bd77b26">Eule::Math::RandomUint</a></div><divclass="ttdeci">static unsigned int RandomUint()</div><divclass="ttdoc">Will return a random unsigned integer.</div><divclass="ttdef"><b>Definition:</b><ahref="Math_8cpp_source.html#l00037">Math.cpp:37</a></div></div>
<divclass="ttc"id="aclassEule_1_1Math_html_a1b0fb72c51751470f7f819b20a5b3b3f"><divclass="ttname"><ahref="classEule_1_1Math.html#a1b0fb72c51751470f7f819b20a5b3b3f">Eule::Math::Oscillate</a></div><divclass="ttdeci">static double Oscillate(const double a, const double b, const double counter, const double speed)</div><divclass="ttdoc">Kind of like , but it oscillates over instead of , by a given speed.</div><divclass="ttdef"><b>Definition:</b><ahref="Math_8cpp_source.html#l00068">Math.cpp:68</a></div></div>