PlaneHelper.html 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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">Plane</span>, size : <span class="param-type">number</span>, hex : <span class="param-type">number | Color | 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"><code>plane</code></td>
  35. <td class="description last"><p>The plane to be visualized.</p></td>
  36. </tr>
  37. <tr>
  38. <td class="name"><code>size</code></td>
  39. <td class="description last"><p>The side length of plane helper.<br/>Default is <code>1</code>.</p></td>
  40. </tr>
  41. <tr>
  42. <td class="name"><code>hex</code></td>
  43. <td class="description last"><p>The helper's color.<br/>Default is <code>0xffff00</code>.</p></td>
  44. </tr>
  45. </tbody>
  46. </table>
  47. </div>
  48. </div>
  49. <h2 class="subsection-title">Properties</h2>
  50. <div class="member">
  51. <h3 class="name" id="plane" translate="no">.<a href="#plane">plane</a><span class="type-signature"> : <a href="Plane.html">Plane</a></span> </h3>
  52. <div class="description">
  53. <p>The plane being visualized.</p>
  54. </div>
  55. </div>
  56. <div class="member">
  57. <h3 class="name" id="size" translate="no">.<a href="#size">size</a><span class="type-signature"> : number</span> </h3>
  58. <div class="description">
  59. <p>The side length of plane helper.<br/>Default is <code>1</code>.</p>
  60. </div>
  61. </div>
  62. <h2 class="subsection-title">Methods</h2>
  63. <h3 class="name name-method" id="dispose" translate="no">.<a href="#dispose">dispose</a><span class="signature">()</span> </h3>
  64. <div class="method">
  65. <div class="description">
  66. <p>Updates the helper to match the position and direction of the
  67. light being visualized.</p>
  68. </div>
  69. </div>
  70. <h2 class="subsection-title">Source</h2>
  71. <p>
  72. <a href="https://github.com/mrdoob/three.js/blob/master/src/helpers/PlaneHelper.js" target="_blank" rel="noopener" translate="no">src/helpers/PlaneHelper.js</a>
  73. </p>
  74. </article>
  75. </section>
  76. <script src="../scripts/linenumber.js"></script>
  77. <script src="../scripts/page.js"></script>
  78. </body>
  79. </html>
粤ICP备19079148号