1
0

Camera.html 2.3 KB

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