CameraHelper.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <!DOCTYPE html>
  2. <html lang="zh">
  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:LineSegments] &rarr;
  12. <h1>[name]</h1>
  13. <p class="desc">
  14. 用于模拟相机视锥体的辅助对象.<br />
  15. 它使用 [page:LineSegments] 来模拟相机视锥体.
  16. </p>
  17. <h2>例子</h2>
  18. <div>[example:webgl_camera WebGL / camera]</div>
  19. <div>[example:webgl_geometry_extrude_splines WebGL / extrude / splines]</div>
  20. <code>
  21. var camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 );
  22. var helper = new THREE.CameraHelper( camera );
  23. scene.add( helper );
  24. </code>
  25. <h2>构造函数</h2>
  26. <h3>[name]( [param:Camera camera] )</h3>
  27. <p>
  28. [page:Camera camera] -- 被模拟的相机.<br /><br />
  29. 为指定相机创建一个新的相机辅助对象 [Name] .
  30. </p>
  31. <h2>属性</h2>
  32. <p>请到基类 [page:LineSegments] 页面查看公共属性.</p>
  33. <h3>[property:Camera camera]</h3>
  34. <p>被模拟的相机.</p>
  35. <h3>[property:object pointMap]</h3>
  36. <p>包含用于模拟相机的点.</p>
  37. <h3>[property:object matrix]</h3>
  38. <p>请参考相机的世界矩阵 [page:Object3D.matrixWorld camera.matrixWorld].</p>
  39. <h3>[property:object matrixAutoUpdate]</h3>
  40. <p>
  41. 请查看 [page:Object3D.matrixAutoUpdate]. 这里设置为 *false* 表示辅助对象
  42. 使用相机的 [page:Object3D.matrixWorld matrixWorld].
  43. </p>
  44. <h2>方法</h2>
  45. <p>请到基类 [page:LineSegments] 页面查看公共方法.</p>
  46. <h3>[method:null update]()</h3>
  47. <p>基于相机的投影矩阵更新辅助对象.</p>
  48. <h2>源码</h2>
  49. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  50. </body>
  51. </html>