| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>SortUtils - Three.js Docs</title>
- <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
- <script src="../scripts/highlight.min.js"></script>
- <link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
- <link type="text/css" rel="stylesheet" href="../styles/page.css">
- </head>
- <body>
- <h1 translate="no">SortUtils</h1>
- <section>
- <header>
- </header>
- <article>
- <h2 class="subsection-title">Import</h2>
- <p><span translate="no">SortUtils</span> is an addon, and must be imported explicitly, see <a href="https://threejs.org/manual/#en/installation" target="_blank">Installation#Addons</a>.</p>
- <pre><code class="language-js">import * as SortUtils from 'three/addons/utils/SortUtils.js';</code></pre>
- <div class="container-overview">
- </div>
- <h2 class="subsection-title">Static Methods</h2>
- <h3 class="name name-method" id=".radixSort" translate="no">.<a href="#.radixSort">radixSort</a><span class="signature">( arr : <span class="param-type">Array.<Object></span>, opt : <span class="param-type">Object</span> )</span> </h3>
- <div class="method">
- <div class="description">
- <p>Hybrid radix sort from.</p>
- <ul>
- <li><a href="https://gist.github.com/sciecode/93ed864dd77c5c8803c6a86698d68dab">https://gist.github.com/sciecode/93ed864dd77c5c8803c6a86698d68dab</a></li>
- <li><a href="https://github.com/mrdoob/three.js/pull/27202#issuecomment-1817640271">https://github.com/mrdoob/three.js/pull/27202#issuecomment-1817640271</a></li>
- </ul>
- <p>Expects unsigned 32b integer values.</p>
- </div>
- <table class="params">
- <tbody>
- <tr>
- <td class="name"><code>arr</code></td>
- <td class="description last"><p>The array to sort.</p></td>
- </tr>
- <tr>
- <td class="name"><code>opt</code></td>
- <td class="description last"><p>The options</p></td>
- </tr>
- </tbody>
- </table>
- </div>
- <h2 class="subsection-title">Source</h2>
- <p>
- <a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/utils/SortUtils.js" target="_blank" rel="noopener" translate="no">examples/jsm/utils/SortUtils.js</a>
- </p>
- </article>
- </section>
- <script src="../scripts/linenumber.js"></script>
- <script src="../scripts/page.js"></script>
- </body>
- </html>
|