Spherical.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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 point's spherical coordinates.</div>
  13. <h2>Constructor</h2>
  14. <h3>[name]( [page:Float radius], [page:Float phi], [page:Float theta] )</h3>
  15. <div>
  16. radius -- [page:Float] the radius<br />
  17. phi -- [page:Float] polar angle from the y (up) axis<br />
  18. theta -- [page:Float] equator angle around the y (up) axis
  19. </div>
  20. <div>
  21. The poles (phi) are at the positive and negative y axis. The equator (theta) starts at positive z.
  22. </div>
  23. <h2>Properties</h2>
  24. <h3>[property:Float radius]</h3>
  25. <h3>[property:Float phi]</h3>
  26. <h3>[property:Float theta]</h3>
  27. <h2>Methods</h2>
  28. <h3>[method:Spherical set]( [page:Float radius], [page:Float phi], [page:Float theta] ) [page:Spherical this]</h3>
  29. <div>
  30. Sets values of this spherical's component coordinates.
  31. </div>
  32. <h3>[method:Spherical copy]( [page:Spherical s] ) [page:Spherical this]</h3>
  33. <div>
  34. Copies value of *s* to this spherical.
  35. </div>
  36. <h3>[method:Spherical clone]() [page:Spherical this]</h3>
  37. <div>
  38. Clones this spherical.
  39. </div>
  40. <h3>[method:Spherical makeSafe]() [page:Spherical this]</h3>
  41. <div>
  42. Restricts the polar angle phi to be between 0.000001 and pi - 0.000001.
  43. </div>
  44. <h3>[method:Spherical setFromVector3]( [page:Vector3 v] ) [page:Spherical this]</h3>
  45. <div>
  46. Sets this object from the vector *v*.
  47. </div>
  48. <h2>Source</h2>
  49. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  50. </body>
  51. </html>