Camera.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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:Boolean isCamera]</h3>
  25. <p>
  26. Used to check whether this or derived classes are cameras. Default is *true*.<br /><br />
  27. You should not change this, as it used internally by the renderer for optimisation.
  28. </p>
  29. <h3>[property:Layers layers]</h3>
  30. <p>
  31. The [page:Layers layers] that the camera is a member of. This is an inherited
  32. property from [page:Object3D].<br /><br />
  33. Objects must share at least one layer with the camera to be seen
  34. when the camera's viewpoint is rendered.
  35. </p>
  36. <h3>[property:Matrix4 matrixWorldInverse]</h3>
  37. <p>
  38. This is the inverse of matrixWorld. MatrixWorld contains the Matrix which has
  39. the world transform of the Camera.
  40. </p>
  41. <h3>[property:Matrix4 projectionMatrix]</h3>
  42. <p>This is the matrix which contains the projection.</p>
  43. <h3>[property:Matrix4 projectionMatrixInverse]</h3>
  44. <p>The inverse of projectionMatrix.</p>
  45. <h2>Methods</h2>
  46. <p>See the base [page:Object3D] class for common methods.</p>
  47. <h3>[method:Camera clone]( )</h3>
  48. <p>
  49. Return a new camera with the same properties as this one.
  50. </p>
  51. <h3>[method:Camera copy]( [param:Camera source], [param:Boolean recursive] )</h3>
  52. <p>
  53. Copy the properties from the source camera into this one.
  54. </p>
  55. <h3>[method:Vector3 getWorldDirection]( [param:Vector3 target] )</h3>
  56. <p>
  57. [page:Vector3 target] — the result will be copied into this Vector3. <br /><br />
  58. Returns a [page:Vector3] representing the world space direction in which the camera is looking.
  59. (Note: A camera looks down its local, negative z-axis).<br /><br />
  60. </p>
  61. <h2>Source</h2>
  62. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  63. </body>
  64. </html>