Sphere.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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">todo</div>
  12. <h2>Constructor</h2>
  13. <h3>[name]([page:todo center], [page:todo radius])</h3>
  14. <div>
  15. center -- todo <br />
  16. radius -- todo
  17. </div>
  18. <div>
  19. todo
  20. </div>
  21. <h2>Properties</h2>
  22. <h3>.[page:number radius]</h3>
  23. <div>
  24. todo
  25. </div>
  26. <h3>.[page:Vector3 center]</h3>
  27. <div>
  28. todo
  29. </div>
  30. <h2>Methods</h2>
  31. <h3>.set([page:todo center], [page:todo radius]) [page:todo]</h3>
  32. <div>
  33. center -- todo <br />
  34. radius -- todo
  35. </div>
  36. <div>
  37. todo
  38. </div>
  39. <h3>.applyMatrix4([page:todo matrix]) [page:todo]</h3>
  40. <div>
  41. matrix -- todo
  42. </div>
  43. <div>
  44. todo
  45. </div>
  46. <h3>.clampPoint([page:todo point], [page:todo optionalTarget]) [page:todo]</h3>
  47. <div>
  48. point -- todo <br />
  49. optionalTarget -- todo
  50. </div>
  51. <div>
  52. todo
  53. </div>
  54. <h3>.translate([page:todo offset]) [page:todo]</h3>
  55. <div>
  56. offset -- todo
  57. </div>
  58. <div>
  59. todo
  60. </div>
  61. <h3>.clone() [page:todo]</h3>
  62. <div>
  63. todo
  64. </div>
  65. <h3>.equals([page:todo sphere]) [page:todo]</h3>
  66. <div>
  67. sphere -- todo
  68. </div>
  69. <div>
  70. todo
  71. </div>
  72. <h3>.setFromPoints([page:todo points], [page:Vector3 optionalCenter]) [page:todo]</h3>
  73. <div>
  74. points -- list of [page:Vector3 vector] positions.<br />
  75. optionalCenter -- optional position for the sphere's center.<br />
  76. </div>
  77. <div>
  78. Computes the minimum bounding sphere for *points*. If *optionalCenter* is given, it is used as the sphere's center. Otherwise, the center of the axis-aligned bounding box encompassing *points* is calculated.
  79. </div>
  80. <h3>.distanceToPoint([page:todo point]) [page:todo]</h3>
  81. <div>
  82. point -- todo
  83. </div>
  84. <div>
  85. todo
  86. </div>
  87. <h3>.getBoundingBox([page:todo optionalTarget]) [page:todo]</h3>
  88. <div>
  89. optionalTarget -- todo
  90. </div>
  91. <div>
  92. todo
  93. </div>
  94. <h3>.containsPoint([page:todo point]) [page:todo]</h3>
  95. <div>
  96. point -- todo
  97. </div>
  98. <div>
  99. todo
  100. </div>
  101. <h3>.copy([page:todo sphere]) [page:todo]</h3>
  102. <div>
  103. sphere -- todo
  104. </div>
  105. <div>
  106. todo
  107. </div>
  108. <h3>.intersectsSphere([page:todo sphere]) [page:todo]</h3>
  109. <div>
  110. sphere -- todo
  111. </div>
  112. <div>
  113. todo
  114. </div>
  115. <h3>.empty() [page:todo]</h3>
  116. <div>
  117. todo
  118. </div>
  119. <h2>Source</h2>
  120. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  121. </body>
  122. </html>