Frustum.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../" />
  6. <script src="list.js"></script>
  7. <script src="page.js"></script>
  8. <link type="text/css" rel="stylesheet" href="page.css" />
  9. </head>
  10. <body>
  11. <h1>[name]</h1>
  12. <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>
  13. <h2>Constructor</h2>
  14. <h3>[name]([page:Plane p0], [page:Plane p1], [page:Plane p2], [page:Plane p3], [page:Plane p4], [page:Plane p5])</h3>
  15. <div>
  16. p0 -- [page:Plane] <br />
  17. p1 -- [page:Plane] <br />
  18. p2 -- [page:Plane] <br />
  19. p3 -- [page:Plane] <br />
  20. p4 -- [page:Plane] <br />
  21. p5 -- [page:Plane]
  22. </div>
  23. <div>
  24. Creates a frustum from the designated planes.
  25. </div>
  26. <h2>Properties</h2>
  27. <h3>[property:Array planes]</h3>
  28. <div>
  29. Array of 6 [page:Plane planes].
  30. </div>
  31. <h2>Methods</h2>
  32. <h3>[method:Frustum setFromMatrix]( [page:Matrix4 matrix] )</h3>
  33. <h3>[method:Boolean intersectsObject]( [page:Object3D object] )</h3>
  34. <div>
  35. Checks whether the object's bounding sphere is intersecting the Frustum.
  36. </div>
  37. <h3>[method:Frustum clone]()</h3>
  38. <div>
  39. Return a copy of this Frustum
  40. </div>
  41. <h3>[method:Frustum set]( [page:Plane p0], [page:Plane p1], [page:Plane p2], [page:Plane p3], [page:Plane p4], [page:Plane p5] )</h3>
  42. <div>
  43. p0 -- [page:Plane] <br />
  44. p1 -- [page:Plane] <br />
  45. p2 -- [page:Plane] <br />
  46. p3 -- [page:Plane] <br />
  47. p4 -- [page:Plane] <br />
  48. p5 -- [page:Plane]
  49. </div>
  50. <div>
  51. Sets the current frustum from the passed planes. No plane order is implicitely implied.
  52. </div>
  53. <h3>[method:Frustum copy]( [page:Frustum frustum] ) [page:Frustum this]</h3>
  54. <div>
  55. frustum -- The frustum to copy
  56. </div>
  57. <div>
  58. Copies the values of the passed frustum.
  59. </div>
  60. <h3>[method:Boolean containsPoint]( [page:Vector3 point] )</h3>
  61. <div>
  62. point -- [page:Vector3] to test
  63. </div>
  64. <div>
  65. Checks to see if the frustum contains the point.
  66. </div>
  67. <h3>[method:Boolean intersectsBox]( [page:Box3 box] )</h3>
  68. <div>
  69. box -- [page:Box3]
  70. </div>
  71. <div>
  72. Check to see if the box intersects with the frustum.
  73. </div>
  74. <h3>[method:Boolean intersectsSphere]( [page:Sphere sphere] )</h3>
  75. <div>
  76. sphere -- [page:Sphere]
  77. </div>
  78. <div>
  79. Check to see if the sphere intersects with the frustum.
  80. </div>
  81. <h2>Source</h2>
  82. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  83. </body>
  84. </html>