1
0

module-SortUtils.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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" rel="noopener">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" target="_blank" rel="noopener">https://gist.github.com/sciecode/93ed864dd77c5c8803c6a86698d68dab</a></li>
  29. <li><a href="https://github.com/mrdoob/three.js/pull/27202#issuecomment-1817640271" target="_blank" rel="noopener">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">
  37. <strong>arr</strong>
  38. </td>
  39. <td class="description last">
  40. <p>The array to sort.</p>
  41. </td>
  42. </tr>
  43. <tr>
  44. <td class="name">
  45. <strong>opt</strong>
  46. </td>
  47. <td class="description last">
  48. <p>The options</p>
  49. </td>
  50. </tr>
  51. </tbody>
  52. </table>
  53. </div>
  54. <h2 class="subsection-title">Source</h2>
  55. <p>
  56. <a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/utils/SortUtils.js" translate="no" target="_blank" rel="noopener">examples/jsm/utils/SortUtils.js</a>
  57. </p>
  58. </article>
  59. </section>
  60. <script src="../scripts/linenumber.js"></script>
  61. <script src="../scripts/page.js"></script>
  62. </body>
  63. </html>
粤ICP备19079148号