OrthographicCamera.rst 1.3 KB

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