module-SortUtils.html 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>SortUtils - Three.js Docs</title>
  6. <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
  7. <script src="../scripts/highlight.min.js"></script>
  8. <link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
  9. <link type="text/css" rel="stylesheet" href="../styles/page.css">
  10. </head>
  11. <body>
  12. <h1 translate="no">SortUtils</h1>
  13. <section>
  14. <header>
  15. </header>
  16. <article>
  17. <h2 class="subsection-title">Import</h2>
  18. <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>
  19. <pre><code class="language-js">import * as SortUtils from 'three/addons/utils/SortUtils.js';</code></pre>
  20. <div class="container-overview">
  21. </div>
  22. <h2 class="subsection-title">Static Methods</h2>
  23. <h3 class="name name-method" id=".radixSort" translate="no">.<a href="#.radixSort">radixSort</a><span class="signature">( arr : <span class="param-type">Array.&lt;Object></span>, opt : <span class="param-type">Object</span> )</span> </h3>
  24. <div class="method">
  25. <div class="description">
  26. <p>Hybrid radix sort from.</p>
  27. <ul>
  28. <li><a href="https://gist.github.com/sciecode/93ed864dd77c5c8803c6a86698d68dab">https://gist.github.com/sciecode/93ed864dd77c5c8803c6a86698d68dab</a></li>
  29. <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>
  30. </ul>
  31. <p>Expects unsigned 32b integer values.</p>
  32. </div>
  33. <table class="params">
  34. <tbody>
  35. <tr>
  36. <td class="name"><code>arr</code></td>
  37. <td class="description last"><p>The array to sort.</p></td>
  38. </tr>
  39. <tr>
  40. <td class="name"><code>opt</code></td>
  41. <td class="description last"><p>The options</p></td>
  42. </tr>
  43. </tbody>
  44. </table>
  45. </div>
  46. <h2 class="subsection-title">Source</h2>
  47. <p>
  48. <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>
  49. </p>
  50. </article>
  51. </section>
  52. <script src="../scripts/linenumber.js"></script>
  53. <script src="../scripts/page.js"></script>
  54. </body>
  55. </html>
粤ICP备19079148号