Camera.html 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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;
  12. <h1>[name]</h1>
  13. <p class="desc">
  14. Abstract base class for cameras. This class should always be inherited when you build a new camera.
  15. </p>
  16. <h2>Constructor</h2>
  17. <h3>[name]()</h3>
  18. <p>
  19. Creates a new [name]. Note that this class is not intended to be called directly;
  20. you probably want a [page:PerspectiveCamera] or [page:OrthographicCamera] instead.
  21. </p>
  22. <h2>Properties</h2>
  23. <p>See the base [page:Object3D] class for common properties.</p>
  24. <h3>[property:Layers layers]</h3>
  25. <p>
  26. The [page:Layers layers] that the camera is a member of. This is an inherited
  27. property from [page:Object3D].<br /><br />
  28. Objects must share at least one layer with the camera to be seen
  29. when the camera's viewpoint is rendered.
  30. </p>
  31. <h3>[property:Matrix4 matrixWorldInverse]</h3>
  32. <p>
  33. This is the inverse of matrixWorld. MatrixWorld contains the Matrix which has
  34. the world transform of the Camera.
  35. </p>
  36. <h3>[property:Matrix4 projectionMatrix]</h3>
  37. <p>This is the matrix which contains the projection.</p>
  38. <h3>[property:Matrix4 projectionMatrixInverse]</h3>
  39. <p>The inverse of projectionMatrix.</p>
  40. <h2>Methods</h2>
  41. <p>See the base [page:Object3D] class for common methods.</p>
  42. <h3>[method:Camera clone]( )</h3>
  43. <p>
  44. Return a new camera with the same properties as this one.
  45. </p>
  46. <h3>[method:Camera copy]( [param:Camera source], [param:Boolean recursive] )</h3>
  47. <p>
  48. Copy the properties from the source camera into this one.
  49. </p>
  50. <h3>[method:Vector3 getWorldDirection]( [param:Vector3 target] )</h3>
  51. <p>
  52. [page:Vector3 target] — the result will be copied into this Vector3. <br /><br />
  53. Returns a [page:Vector3] representing the world space direction in which the camera is looking.
  54. (Note: A camera looks down its local, negative z-axis).<br /><br />
  55. </p>
  56. <h2>Source</h2>
  57. <p>
  58. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  59. </p>
  60. </body>
  61. </html>