Camera.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 following properties to the correct type: matrixWorldInverse, projectionMatrix and projectionMatrixInverse.
  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. <h3>.[page:Matrix4 projectionMatrixInverse]</h3>
  24. <div>This is the inverse of projectionMatrix.</div>
  25. <h2>Methods</h2>
  26. <h3>.lookAt( [page:Vector3 vector] )</h3>
  27. <div>
  28. vector — point to look at<br />
  29. <br />
  30. 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).
  31. </div>
  32. <h2>Source</h2>
  33. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  34. </body>
  35. </html>