Frustum.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. <h1>[name]</h1>
  11. <div class="desc"><a href="http://en.wikipedia.org/wiki/Frustum">Frustums</a> are used to determine what is inside the camera's field of view. They help speed up the rendering process.</div>
  12. <h2>Constructor</h2>
  13. <h3>[name]([page:Plane p0], [page:Plane p1], [page:Plane p2], [page:Plane p3], [page:Plane p4], [page:Plane p5])</h3>
  14. <div>
  15. p0 -- [page:Plane] <br />
  16. p1 -- [page:Plane] <br />
  17. p2 -- [page:Plane] <br />
  18. p3 -- [page:Plane] <br />
  19. p4 -- [page:Plane] <br />
  20. p5 -- [page:Plane]
  21. </div>
  22. <div>
  23. Creates a frustum from the designated planes.
  24. </div>
  25. <h2>Properties</h2>
  26. <h3>.[page:Array planes]</h3>
  27. <div>
  28. Array of 6 [page:Plane planes].
  29. </div>
  30. <h2>Methods</h2>
  31. <h3>.setFromMatrix( [page:Matrix4 matrix] )</h3>
  32. <h3>.intersectsObject( [page:Object3D object] ) [page:Boolean]</h3>
  33. <div>
  34. Checks whether the object's bounding sphere is intersecting the Frustum.
  35. </div>
  36. <h3>.clone() [page:Frustum]</h3>
  37. <div>
  38. Return a copy of this Frustum
  39. </div>
  40. <h3>.set([page:Plane p0], [page:Plane p1], [page:Plane p2], [page:Plane p3], [page:Plane p4], [page:Plane p5]) [page:Boolean]</h3>
  41. <div>
  42. p0 -- [page:Plane] <br />
  43. p1 -- [page:Plane] <br />
  44. p2 -- [page:Plane] <br />
  45. p3 -- [page:Plane] <br />
  46. p4 -- [page:Plane] <br />
  47. p5 -- [page:Plane]
  48. </div>
  49. <div>
  50. Sets the current frustum from the passed planes. No plane order is implicitely implied.
  51. </div>
  52. <h3>.copy([page:Frustum frustum]) [page:Frustum this]</h3>
  53. <div>
  54. frustum -- The frustum to copy
  55. </div>
  56. <div>
  57. Copies the values of the passed frustum.
  58. </div>
  59. <h3>.containsPoint([page:Vector3 point]) [page:Boolean]</h3>
  60. <div>
  61. point -- [page:Vector3] to test
  62. </div>
  63. <div>
  64. Checks to see if the frustum contains the point.
  65. </div>
  66. <h3>.intersectsSphere([page:Sphere sphere]) [page:Boolean]</h3>
  67. <div>
  68. sphere -- [page:Sphere]
  69. </div>
  70. <div>
  71. Check to see if the sphere intersects with the frustum.
  72. </div>
  73. <h2>Source</h2>
  74. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  75. </body>
  76. </html>