BitcastNode.html 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>BitcastNode - 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> → <a href="TempNode.html">TempNode</a> → </p>
  13. <h1 translate="no">BitcastNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>This node represents an operation that reinterprets the bit representation of a value
  17. in one type as a value in another type.</p></div>
  18. </header>
  19. <article>
  20. <div class="container-overview">
  21. <h2>Constructor</h2>
  22. <h3 class="name name-method" id="BitcastNode" translate="no">new <a href="#BitcastNode">BitcastNode</a><span class="signature">( valueNode : <span class="param-type"><a href="Node.html">Node</a></span>, conversionType : <span class="param-type">string</span>, inputType : <span class="param-type">string</span> )</span> </h3>
  23. <div class="method">
  24. <div class="description">
  25. <p>Constructs a new bitcast node.</p>
  26. </div>
  27. <table class="params">
  28. <tbody>
  29. <tr>
  30. <td class="name">
  31. <strong>valueNode</strong>
  32. </td>
  33. <td class="description last">
  34. <p>The value to convert.</p>
  35. </td>
  36. </tr>
  37. <tr>
  38. <td class="name">
  39. <strong>conversionType</strong>
  40. </td>
  41. <td class="description last">
  42. <p>The type to convert to.</p>
  43. </td>
  44. </tr>
  45. <tr>
  46. <td class="name">
  47. <strong>inputType</strong>
  48. </td>
  49. <td class="description last">
  50. <p>The expected input data type of the bitcast operation.</p>
  51. <p>Default is <code>null</code>.</p>
  52. </td>
  53. </tr>
  54. </tbody>
  55. </table>
  56. </div>
  57. </div>
  58. <h2 class="subsection-title">Properties</h2>
  59. <div class="member">
  60. <h3 class="name" id="conversionType" translate="no">.<a href="#conversionType">conversionType</a><span class="type-signature"> : string</span> </h3>
  61. <div class="description">
  62. <p>The type the value will be converted to.</p>
  63. </div>
  64. </div>
  65. <div class="member">
  66. <h3 class="name" id="inputType" translate="no">.<a href="#inputType">inputType</a><span class="type-signature"> : string</span> </h3>
  67. <div class="description">
  68. <p>The expected input data type of the bitcast operation.</p>
  69. <p>Default is <code>null</code>.</p>
  70. </div>
  71. </div>
  72. <div class="member">
  73. <h3 class="name" id="isBitcastNode" translate="no">.<a href="#isBitcastNode">isBitcastNode</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  74. <div class="description">
  75. <p>This flag can be used for type testing.</p>
  76. <p>Default is <code>true</code>.</p>
  77. </div>
  78. </div>
  79. <div class="member">
  80. <h3 class="name" id="valueNode" translate="no">.<a href="#valueNode">valueNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  81. <div class="description">
  82. <p>The data to bitcast to a new type.</p>
  83. </div>
  84. </div>
  85. <h2 class="subsection-title">Source</h2>
  86. <p>
  87. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/math/BitcastNode.js" translate="no" target="_blank" rel="noopener">src/nodes/math/BitcastNode.js</a>
  88. </p>
  89. </article>
  90. </section>
  91. <script src="../scripts/linenumber.js"></script>
  92. <script src="../scripts/page.js"></script>
  93. </body>
  94. </html>
粤ICP备19079148号