Camera.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. <div class="desc">Abstract base class for cameras. This class should always be inherited when you build a new camera.</div>
  14. <h2>Constructor</h2>
  15. <h3>[name]()</h3>
  16. <div>
  17. This constructor sets the following properties to the correct type: matrixWorldInverse and projectionMatrix.
  18. </div>
  19. <h2>Properties</h2>
  20. <h3>[property:Matrix4 matrixWorldInverse]</h3>
  21. <div>This is the inverse of matrixWorld. MatrixWorld contains the Matrix which has the world transform of the Camera.</div>
  22. <h3>[property:Matrix4 projectionMatrix]</h3>
  23. <div>This is the matrix which contains the projection.</div>
  24. <h2>Methods</h2>
  25. <h3>[method:Vector3 getWorldDirection]([page:Vector3 vector])</h3>
  26. <div>
  27. vector — (optional)<br />
  28. <br />
  29. It returns a vector representing the direction in which the camera is looking, in world space.
  30. </div>
  31. <h3>[method:null lookAt]( [page:Vector3 vector] )</h3>
  32. <div>
  33. vector — point to look at<br />
  34. <br />
  35. This makes the camera look at the vector position in the global space as long as the parent of this camera is the scene or at position (0,0,0).
  36. </div>
  37. <h3>[method:Camera clone]( [page:Camera camera] )</h3>
  38. <div>
  39. camera — camera to clone<br />
  40. <br />
  41. It returns a clone of camera.
  42. </div>
  43. <h2>Source</h2>
  44. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  45. </body>
  46. </html>