OrthographicCamera.rst 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. OrthographicCamera - Camera with orthographic projection
  2. ------------------------------------------------------------
  3. .. ...............................................................................
  4. .. rubric:: Constructor
  5. .. ...............................................................................
  6. .. class:: OrthographicCamera( left, right, top, bottom, near, far )
  7. Camera with orthographic projection
  8. Part of scene graph
  9. Inherits from :class:`Object3D` :class:`Camera`
  10. :param float left: left
  11. :param float right: right
  12. :param float top: top
  13. :param float bottom: bottom
  14. :param float near: near
  15. :param float far: far
  16. .. ...............................................................................
  17. .. rubric:: Attributes
  18. .. ...............................................................................
  19. .. attribute:: OrthographicCamera.left
  20. Camera frustum left plane
  21. .. attribute:: OrthographicCamera.right
  22. Camera frustum right plane
  23. .. attribute:: OrthographicCamera.top
  24. Camera frustum top plane
  25. .. attribute:: OrthographicCamera.bottom
  26. Camera frustum bottom plane
  27. .. attribute:: OrthographicCamera.near
  28. Camera frustum near plane
  29. .. attribute:: OrthographicCamera.far
  30. Camera frustum far plane
  31. .. ...............................................................................
  32. .. rubric:: Method
  33. .. ...............................................................................
  34. .. function:: OrthographicCamera.updateProjectionMatrix()
  35. Updates camera's projection matrix. Must be called after change of parameters.
  36. .. ...............................................................................
  37. .. rubric:: Example
  38. .. ...............................................................................
  39. ::
  40. var camera = new THREE.OrthographicCamera( window.innerWidth / - 2, window.innerWidth / 2, window.innerHeight / 2, window.innerHeight / - 2, 1, 1000 );
  41. scene.add( camera );