PlaneHelper.html 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>PlaneHelper - 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="Object3D.html">Object3D</a> → <a href="Line.html">Line</a> → </p>
  13. <h1 translate="no">PlaneHelper</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>A helper object to visualize an instance of <a href="Plane.html">Plane</a>.</p></div>
  17. <h2>Code Example</h2>
  18. <div translate="no"><pre><code class="language-js">const plane = new THREE.Plane( new THREE.Vector3( 1, 1, 0.2 ), 3 );
  19. const helper = new THREE.PlaneHelper( plane, 1, 0xffff00 );
  20. scene.add( helper );
  21. </code></pre></div>
  22. </header>
  23. <article>
  24. <div class="container-overview">
  25. <h2>Constructor</h2>
  26. <h3 class="name name-method" id="PlaneHelper" translate="no">new <a href="#PlaneHelper">PlaneHelper</a><span class="signature">( plane : <span class="param-type"><a href="Plane.html">Plane</a></span>, size : <span class="param-type">number</span>, hex : <span class="param-type">number | <a href="Color.html">Color</a> | string</span> )</span> </h3>
  27. <div class="method">
  28. <div class="description">
  29. <p>Constructs a new plane helper.</p>
  30. </div>
  31. <table class="params">
  32. <tbody>
  33. <tr>
  34. <td class="name">
  35. <strong>plane</strong>
  36. </td>
  37. <td class="description last">
  38. <p>The plane to be visualized.</p>
  39. </td>
  40. </tr>
  41. <tr>
  42. <td class="name">
  43. <strong>size</strong>
  44. </td>
  45. <td class="description last">
  46. <p>The side length of plane helper.</p>
  47. <p>Default is <code>1</code>.</p>
  48. </td>
  49. </tr>
  50. <tr>
  51. <td class="name">
  52. <strong>hex</strong>
  53. </td>
  54. <td class="description last">
  55. <p>The helper's color.</p>
  56. <p>Default is <code>0xffff00</code>.</p>
  57. </td>
  58. </tr>
  59. </tbody>
  60. </table>
  61. </div>
  62. </div>
  63. <h2 class="subsection-title">Properties</h2>
  64. <div class="member">
  65. <h3 class="name" id="plane" translate="no">.<a href="#plane">plane</a><span class="type-signature"> : <a href="Plane.html">Plane</a></span> </h3>
  66. <div class="description">
  67. <p>The plane being visualized.</p>
  68. </div>
  69. </div>
  70. <div class="member">
  71. <h3 class="name" id="size" translate="no">.<a href="#size">size</a><span class="type-signature"> : number</span> </h3>
  72. <div class="description">
  73. <p>The side length of plane helper.</p>
  74. <p>Default is <code>1</code>.</p>
  75. </div>
  76. </div>
  77. <h2 class="subsection-title">Methods</h2>
  78. <h3 class="name name-method" id="dispose" translate="no">.<a href="#dispose">dispose</a><span class="signature">()</span> </h3>
  79. <div class="method">
  80. <div class="description">
  81. <p>Updates the helper to match the position and direction of the
  82. light being visualized.</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/helpers/PlaneHelper.js" translate="no" target="_blank" rel="noopener">src/helpers/PlaneHelper.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号