Camera.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <script src="../../list.js"></script>
  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. <div class="desc">Abstract base class for cameras. This class should always be inherited when you build a new camera.</div>
  13. <h2>Constructor</h2>
  14. <h3>[name]()</h3>
  15. <div>
  16. This constructor sets the following properties to the correct type: matrixWorldInverse and projectionMatrix.
  17. </div>
  18. <h2>Properties</h2>
  19. <h3>.[page:Matrix4 matrixWorldInverse]</h3>
  20. <div>This is the inverse of matrixWorld. MatrixWorld contains the Matrix which has the world transform of the Camera.</div>
  21. <h3>.[page:Matrix4 projectionMatrix]</h3>
  22. <div>This is the matrix which contains the projection.</div>
  23. <h2>Methods</h2>
  24. <h3>.lookAt( [page:Vector3 vector] )</h3>
  25. <div>
  26. vector — point to look at<br />
  27. <br />
  28. 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).
  29. </div>
  30. <h2>Source</h2>
  31. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  32. </body>
  33. </html>