RemapNode.html 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>RemapNode - 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. <p class="inheritance" translate="no"><a href="EventDispatcher.html">EventDispatcher</a> → <a href="Node.html">Node</a> → </p>
  13. <h1 translate="no">RemapNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>This node allows to remap a node value from one range into another. E.g a value of
  17. <code>0.4</code> in the range <code>[ 0.3, 0.5 ]</code> should be remapped into the normalized range <code>[ 0, 1 ]</code>.
  18. <code>RemapNode</code> takes care of that and converts the original value of <code>0.4</code> to <code>0.5</code>.</p></div>
  19. </header>
  20. <article>
  21. <div class="container-overview">
  22. <h2>Constructor</h2>
  23. <h3 class="name name-method" id="RemapNode" translate="no">new <a href="#RemapNode">RemapNode</a><span class="signature">( node : <span class="param-type">Node</span>, inLowNode : <span class="param-type">Node</span>, inHighNode : <span class="param-type">Node</span>, outLowNode : <span class="param-type">Node</span>, outHighNode : <span class="param-type">Node</span> )</span> </h3>
  24. <div class="method">
  25. <div class="description">
  26. <p>Constructs a new remap node.</p>
  27. </div>
  28. <table class="params">
  29. <tbody>
  30. <tr>
  31. <td class="name"><code>node</code></td>
  32. <td class="description last"><p>The node that should be remapped.</p></td>
  33. </tr>
  34. <tr>
  35. <td class="name"><code>inLowNode</code></td>
  36. <td class="description last"><p>The source or current lower bound of the range.</p></td>
  37. </tr>
  38. <tr>
  39. <td class="name"><code>inHighNode</code></td>
  40. <td class="description last"><p>The source or current upper bound of the range.</p></td>
  41. </tr>
  42. <tr>
  43. <td class="name"><code>outLowNode</code></td>
  44. <td class="description last"><p>The target lower bound of the range.<br/>Default is <code>float(0)</code>.</p></td>
  45. </tr>
  46. <tr>
  47. <td class="name"><code>outHighNode</code></td>
  48. <td class="description last"><p>The target upper bound of the range.<br/>Default is <code>float(1)</code>.</p></td>
  49. </tr>
  50. </tbody>
  51. </table>
  52. </div>
  53. </div>
  54. <h2 class="subsection-title">Properties</h2>
  55. <div class="member">
  56. <h3 class="name" id="doClamp" translate="no">.<a href="#doClamp">doClamp</a><span class="type-signature"> : boolean</span> </h3>
  57. <div class="description">
  58. <p>Whether the node value should be clamped before
  59. remapping it to the target range.<br/>Default is <code>true</code>.</p>
  60. </div>
  61. </div>
  62. <div class="member">
  63. <h3 class="name" id="inHighNode" translate="no">.<a href="#inHighNode">inHighNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  64. <div class="description">
  65. <p>The source or current upper bound of the range.</p>
  66. </div>
  67. </div>
  68. <div class="member">
  69. <h3 class="name" id="inLowNode" translate="no">.<a href="#inLowNode">inLowNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  70. <div class="description">
  71. <p>The source or current lower bound of the range.</p>
  72. </div>
  73. </div>
  74. <div class="member">
  75. <h3 class="name" id="node" translate="no">.<a href="#node">node</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  76. <div class="description">
  77. <p>The node that should be remapped.</p>
  78. </div>
  79. </div>
  80. <div class="member">
  81. <h3 class="name" id="outHighNode" translate="no">.<a href="#outHighNode">outHighNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  82. <div class="description">
  83. <p>The target upper bound of the range.<br/>Default is <code>float(1)</code>.</p>
  84. </div>
  85. </div>
  86. <div class="member">
  87. <h3 class="name" id="outLowNode" translate="no">.<a href="#outLowNode">outLowNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  88. <div class="description">
  89. <p>The target lower bound of the range.<br/>Default is <code>float(0)</code>.</p>
  90. </div>
  91. </div>
  92. <h2 class="subsection-title">Source</h2>
  93. <p>
  94. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/utils/RemapNode.js" target="_blank" rel="noopener" translate="no">src/nodes/utils/RemapNode.js</a>
  95. </p>
  96. </article>
  97. </section>
  98. <script src="../scripts/linenumber.js"></script>
  99. <script src="../scripts/page.js"></script>
  100. </body>
  101. </html>
粤ICP备19079148号