| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>PlaneHelper - Three.js Docs</title>
- <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
- <script src="../scripts/highlight.min.js"></script>
- <link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
- <link type="text/css" rel="stylesheet" href="../styles/page.css">
- </head>
- <body>
- <p class="inheritance" translate="no"><a href="EventDispatcher.html">EventDispatcher</a> → <a href="Object3D.html">Object3D</a> → <a href="Line.html">Line</a> → </p>
- <h1 translate="no">PlaneHelper</h1>
- <section>
- <header>
- <div class="class-description"><p>A helper object to visualize an instance of <a href="Plane.html">Plane</a>.</p></div>
- <h2>Code Example</h2>
- <div translate="no"><pre><code class="language-js">const plane = new THREE.Plane( new THREE.Vector3( 1, 1, 0.2 ), 3 );
- const helper = new THREE.PlaneHelper( plane, 1, 0xffff00 );
- scene.add( helper );
- </code></pre></div>
- </header>
- <article>
- <div class="container-overview">
- <h2>Constructor</h2>
- <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>
- <div class="method">
- <div class="description">
- <p>Constructs a new plane helper.</p>
- </div>
- <table class="params">
- <tbody>
- <tr>
- <td class="name">
- <strong>plane</strong>
- </td>
- <td class="description last">
- <p>The plane to be visualized.</p>
- </td>
- </tr>
- <tr>
- <td class="name">
- <strong>size</strong>
- </td>
- <td class="description last">
- <p>The side length of plane helper.</p>
- <p>Default is <code>1</code>.</p>
- </td>
- </tr>
- <tr>
- <td class="name">
- <strong>hex</strong>
- </td>
- <td class="description last">
- <p>The helper's color.</p>
- <p>Default is <code>0xffff00</code>.</p>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <h2 class="subsection-title">Properties</h2>
- <div class="member">
- <h3 class="name" id="plane" translate="no">.<a href="#plane">plane</a><span class="type-signature"> : <a href="Plane.html">Plane</a></span> </h3>
- <div class="description">
- <p>The plane being visualized.</p>
- </div>
- </div>
- <div class="member">
- <h3 class="name" id="size" translate="no">.<a href="#size">size</a><span class="type-signature"> : number</span> </h3>
- <div class="description">
- <p>The side length of plane helper.</p>
- <p>Default is <code>1</code>.</p>
- </div>
- </div>
- <h2 class="subsection-title">Methods</h2>
- <h3 class="name name-method" id="dispose" translate="no">.<a href="#dispose">dispose</a><span class="signature">()</span> </h3>
- <div class="method">
- <div class="description">
- <p>Updates the helper to match the position and direction of the
- light being visualized.</p>
- </div>
- </div>
- <h2 class="subsection-title">Source</h2>
- <p>
- <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>
- </p>
- </article>
- </section>
- <script src="../scripts/linenumber.js"></script>
- <script src="../scripts/page.js"></script>
- </body>
- </html>
|