odin
Version:
Node.js Canvas/WebGL Javascript Game Framework
4,188 lines (1,213 loc) • 55 kB
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Class: Mathf</title>
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>
<body>
<div id="main">
<h1 class="page-title">Class: Mathf</h1>
<section>
<header>
<h2>
Mathf
</h2>
</header>
<article>
<div class="container-overview">
<dt>
<h4 class="name" id="Mathf"><span class="type-signature"></span>new Mathf<span class="signature">()</span><span class="type-signature"></span></h4>
</dt>
<dd>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="mathf.js.html">math/mathf.js</a>, <a href="mathf.js.html#line25">line 25</a>
</li></ul></dd>
</dl>
</dd>
</div>
<h3 class="subsection-title">Members</h3>
<dl>
<dt>
<h4 class="name" id="this.EPSILON"><span class="type-signature"><static> </span>this.EPSILON<span class="type-signature"></span></h4>
</dt>
<dd>
<dl class="details">
<h5 class="subsection-title">Properties:</h5>
<dl>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">EPSILON</td>
</tr>
</tbody>
</table></dl>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="mathf.js.html">math/mathf.js</a>, <a href="mathf.js.html#line57">line 57</a>
</li></ul></dd>
</dl>
</dd>
<dt>
<h4 class="name" id="this.HALF_PI"><span class="type-signature"><static> </span>this.HALF_PI<span class="type-signature"></span></h4>
</dt>
<dd>
<dl class="details">
<h5 class="subsection-title">Properties:</h5>
<dl>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">HALF_PI</td>
</tr>
</tbody>
</table></dl>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="mathf.js.html">math/mathf.js</a>, <a href="mathf.js.html#line50">line 50</a>
</li></ul></dd>
</dl>
</dd>
<dt>
<h4 class="name" id="this.PI"><span class="type-signature"><static> </span>this.PI<span class="type-signature"></span></h4>
</dt>
<dd>
<dl class="details">
<h5 class="subsection-title">Properties:</h5>
<dl>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">PI</td>
</tr>
</tbody>
</table></dl>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="mathf.js.html">math/mathf.js</a>, <a href="mathf.js.html#line36">line 36</a>
</li></ul></dd>
</dl>
</dd>
<dt>
<h4 class="name" id="this.TO_DEGS"><span class="type-signature"><static> </span>this.TO_DEGS<span class="type-signature"></span></h4>
</dt>
<dd>
<dl class="details">
<h5 class="subsection-title">Properties:</h5>
<dl>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">TO_DEGS</td>
</tr>
</tbody>
</table></dl>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="mathf.js.html">math/mathf.js</a>, <a href="mathf.js.html#line71">line 71</a>
</li></ul></dd>
</dl>
</dd>
<dt>
<h4 class="name" id="this.TO_RADS"><span class="type-signature"><static> </span>this.TO_RADS<span class="type-signature"></span></h4>
</dt>
<dd>
<dl class="details">
<h5 class="subsection-title">Properties:</h5>
<dl>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">TO_RADS</td>
</tr>
</tbody>
</table></dl>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="mathf.js.html">math/mathf.js</a>, <a href="mathf.js.html#line64">line 64</a>
</li></ul></dd>
</dl>
</dd>
<dt>
<h4 class="name" id="this.TWO_PI"><span class="type-signature"><static> </span>this.TWO_PI<span class="type-signature"></span></h4>
</dt>
<dd>
<dl class="details">
<h5 class="subsection-title">Properties:</h5>
<dl>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">TWO_PI</td>
</tr>
</tbody>
</table></dl>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="mathf.js.html">math/mathf.js</a>, <a href="mathf.js.html#line43">line 43</a>
</li></ul></dd>
</dl>
</dd>
</dl>
<h3 class="subsection-title">Methods</h3>
<dl>
<dt>
<h4 class="name" id="clamp"><span class="type-signature"><static> </span>clamp<span class="signature">(Number, Number, Number)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">x</td>
</tr>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">min</td>
</tr>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">max</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="mathf.js.html">math/mathf.js</a>, <a href="mathf.js.html#line163">line 163</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Number
</div>
</dd>
<dt>
<h4 class="name" id="clamp01"><span class="type-signature"><static> </span>clamp01<span class="signature">(Number)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">x</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="mathf.js.html">math/mathf.js</a>, <a href="mathf.js.html#line203">line 203</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Number
</div>
</dd>
<dt>
<h4 class="name" id="clampBottom"><span class="type-signature"><static> </span>clampBottom<span class="signature">(Number, Number)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">x</td>
</tr>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">min</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="mathf.js.html">math/mathf.js</a>, <a href="mathf.js.html#line177">line 177</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Number
</div>
</dd>
<dt>
<h4 class="name" id="clampTop"><span class="type-signature"><static> </span>clampTop<span class="signature">(Number, Number)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">x</td>
</tr>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">max</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="mathf.js.html">math/mathf.js</a>, <a href="mathf.js.html#line190">line 190</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Number
</div>
</dd>
<dt>
<h4 class="name" id="degsToRads"><span class="type-signature"><static> </span>degsToRads<span class="signature">(Number)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">x</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="mathf.js.html">math/mathf.js</a>, <a href="mathf.js.html#line308">line 308</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Number
</div>
</dd>
<dt>
<h4 class="name" id="direction"><span class="type-signature"><static> </span>direction<span class="signature">(Number, Number)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">x</td>
</tr>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">y</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="mathf.js.html">math/mathf.js</a>, <a href="mathf.js.html#line493">line 493</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
String
</div>
</dd>
<dt>
<h4 class="name" id="directionAngle"><span class="type-signature"><static> </span>directionAngle<span class="signature">(Number, Number)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">x</td>
</tr>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">y</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="mathf.js.html">math/mathf.js</a>, <a href="mathf.js.html#line470">line 470</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
String
</div>
</dd>
<dt>
<h4 class="name" id="equals"><span class="type-signature"><static> </span>equals<span class="signature">(Number, Number, Number)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">a</td>
</tr>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">b</td>
</tr>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">e</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="mathf.js.html">math/mathf.js</a>, <a href="mathf.js.html#line99">line 99</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Boolean
</div>
</dd>
<dt>
<h4 class="name" id="fromJSON"><span class="type-signature"><static> </span>fromJSON<span class="signature">(Object)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>Object</code></td>
<td class="type">
</td>
<td class="description last">json</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="mathf.js.html">math/mathf.js</a>, <a href="mathf.js.html#line449">line 449</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
MATH_CLASS
</div>
</dd>
<dt>
<h4 class="name" id="isPowerOfTwo"><span class="type-signature"><static> </span>isPowerOfTwo<span class="signature">(Number)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">x</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="mathf.js.html">math/mathf.js</a>, <a href="mathf.js.html#line420">line 420</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Number
</div>
</dd>
<dt>
<h4 class="name" id="lerp"><span class="type-signature"><static> </span>lerp<span class="signature">(Number, Number, Number)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">a</td>
</tr>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">b</td>
</tr>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">x</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="mathf.js.html">math/mathf.js</a>, <a href="mathf.js.html#line230">line 230</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Number
</div>
</dd>
<dt>
<h4 class="name" id="lerpAngle"><span class="type-signature"><static> </span>lerpAngle<span class="signature">(Number, Number, Number)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">a</td>
</tr>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">b</td>
</tr>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">x</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="mathf.js.html">math/mathf.js</a>, <a href="mathf.js.html#line244">line 244</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Number
</div>
</dd>
<dt>
<h4 class="name" id="modulo"><span class="type-signature"><static> </span>modulo<span class="signature">(Number, Number)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">a</td>
</tr>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">b</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="mathf.js.html">math/mathf.js</a>, <a href="mathf.js.html#line113">line 113</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Number
</div>
</dd>
<dt>
<h4 class="name" id="pingPong"><span class="type-signature"><static> </span>pingPong<span class="signature">(Number, Number)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">x</td>
</tr>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">length</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="mathf.js.html">math/mathf.js</a>, <a href="mathf.js.html#line294">line 294</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Number
</div>
</dd>
<dt>
<h4 class="name" id="radsToDegs"><span class="type-signature"><static> </span>radsToDegs<span class="signature">(Number)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">x</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="mathf.js.html">math/mathf.js</a>, <a href="mathf.js.html#line320">line 320</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Number
</div>
</dd>
<dt>
<h4 class="name" id="randArg"><span class="type-signature"><static> </span>randArg<span class="signature">()</span><span class="type-signature"></span></h4>
</dt>
<dd>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="mathf.js.html">math/mathf.js</a>, <a href="mathf.js.html#line396">line 396</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Number
</div>
</dd>
<dt>
<h4 class="name" id="randChoice"><span class="type-signature"><static> </span>randChoice<span class="signature">(Array)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>Array</code></td>
<td class="type">
</td>
<td class="description last">array</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="mathf.js.html">math/mathf.js</a>, <a href="mathf.js.html#line371">line 371</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Number
</div>
</dd>
<dt>
<h4 class="name" id="randChoiceObject"><span class="type-signature"><static> </span>randChoiceObject<span class="signature">(Array)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>Array</code></td>
<td class="type">
</td>
<td class="description last">array</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="mathf.js.html">math/mathf.js</a>, <a href="mathf.js.html#line407">line 407</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Number
</div>
</dd>
<dt>
<h4 class="name" id="randFloat"><span class="type-signature"><static> </span>randFloat<span class="signature">(Number, Number)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">min</td>
</tr>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">max</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="mathf.js.html">math/mathf.js</a>, <a href="mathf.js.html#line345">line 345</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Number
</div>
</dd>
<dt>
<h4 class="name" id="randInt"><span class="type-signature"><static> </span>randInt<span class="signature">(Number, Number)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">min</td>
</tr>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">max</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="mathf.js.html">math/mathf.js</a>, <a href="mathf.js.html#line332">line 332</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Number
</div>
</dd>
<dt>
<h4 class="name" id="randSign"><span class="type-signature"><static> </span>randSign<span class="signature">(Number, Number)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">min</td>
</tr>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">max</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="mathf.js.html">math/mathf.js</a>, <a href="mathf.js.html#line358">line 358</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Number
</div>
</dd>
<dt>
<h4 class="name" id="shuffle"><span class="type-signature"><static> </span>shuffle<span class="signature">(Array)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>Array</code></td>
<td class="type">
</td>
<td class="description last">array</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="mathf.js.html">math/mathf.js</a>, <a href="mathf.js.html#line383">line 383</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Array
</div>
</dd>
<dt>
<h4 class="name" id="sign"><span class="type-signature"><static> </span>sign<span class="signature">(Number)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">x</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="mathf.js.html">math/mathf.js</a>, <a href="mathf.js.html#line151">line 151</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Number
</div>
</dd>
<dt>
<h4 class="name" id="smootherStep"><span class="type-signature"><static> </span>smootherStep<span class="signature">(Number, Number, Number)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">x</td>
</tr>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">min</td>
</tr>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">max</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="mathf.js.html">math/mathf.js</a>, <a href="mathf.js.html#line276">line 276</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Number
</div>
</dd>
<dt>
<h4 class="name" id="smoothStep"><span class="type-signature"><static> </span>smoothStep<span class="signature">(Number, Number, Number)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">x</td>
</tr>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">min</td>
</tr>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">max</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="mathf.js.html">math/mathf.js</a>, <a href="mathf.js.html#line258">line 258</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Number
</div>
</dd>
<dt>
<h4 class="name" id="standardAngle"><span class="type-signature"><static> </span>standardAngle<span class="signature">(Number)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">x</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="mathf.js.html">math/mathf.js</a>, <a href="mathf.js.html#line139">line 139</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Number
</div>
</dd>
<dt>
<h4 class="name" id="standardRadian"><span class="type-signature"><static> </span>standardRadian<span class="signature">(Number)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>Number</code></td>
<td class="type">
</td>
<td class="description last">x</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a hre