AxesHelper.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="list.js"></script>
  7. <script src="page.js"></script>
  8. <link type="text/css" rel="stylesheet" href="page.css" />
  9. </head>
  10. <body>
  11. [page:Object3D] &rarr; [page:Line] &rarr; [page:LineSegments] &rarr;
  12. <h1>[name]</h1>
  13. <p class="desc">An axis object to visualize the 3 axes in a simple way. <br />
  14. The X axis is red. The Y axis is green. The Z axis is blue.
  15. </p>
  16. <h2>Code Example</h2>
  17. <code>
  18. var axesHelper = new THREE.AxesHelper( 5 );
  19. scene.add( axesHelper );
  20. </code>
  21. <h2>Examples</h2>
  22. <p>
  23. [example:webgl_geometries WebGL / geometries]<br/>
  24. [example:webgl_geometry_convex WebGL / geometry / convex]<br/>
  25. [example:webgl_geometry_spline_editor WebGL / geometry / spline / editor]
  26. </p>
  27. <h2>Constructor</h2>
  28. <h3>[name]( [param:Number size] )</h3>
  29. <p>
  30. [page:Number size] -- (optional) size of the lines representing the axes. Default is *1*.
  31. </p>
  32. <h2>Properties</h2>
  33. <p>See the base [page:LineSegments] class for common properties.</p>
  34. <h2>Methods</h2>
  35. <p>See the base [page:LineSegments] class for common methods.</p>
  36. <h2>Source</h2>
  37. <p>
  38. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  39. </p>
  40. </body>
  41. </html>