Camera.html 2.2 KB

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