Cylindrical.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <!DOCTYPE html>
  2. <html lang="zh">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  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. <p class="desc">
  12. 一个点的[link:https://en.wikipedia.org/wiki/Cylindrical_coordinate_system cylindrical coordinates](圆柱坐标)。
  13. </p>
  14. <h2>构造器(Constructor)</h2>
  15. <h3>[name]( [param:Float radius], [param:Float theta], [param:Float y] )</h3>
  16. <p>
  17. [page:Float radius] - 从原点到x-z平面上一点的距离
  18. 默认值为 *1.0*.<br />
  19. [page:Float theta] - 在x-z平面内的逆时针角度,以z轴正方向的计算弧度。默认值为0。<br />
  20. [page:Float y] - x-z平面以上的高度 默认值为 *0*.
  21. </p>
  22. <h2>属性(Properties)</h2>
  23. <h3>[property:Float radius]</h3>
  24. <h3>[property:Float theta]</h3>
  25. <h3>[property:Float y]</h3>
  26. <h2>Methods</h2>
  27. <h3>[method:Cylindrical clone]()</h3>
  28. <p>
  29. 返回一个与当前拥有相同 [page:.radius radius], [page:.theta theta] 和 [page:.y y] 属性的圆柱坐标。
  30. </p>
  31. <h3>[method:this copy]( [param:Cylindrical other] )</h3>
  32. <p>
  33. 将传入的圆柱坐标对象的 [page:.radius radius], [page:.theta theta] 和 [page:.y y] 属性赋给当前对象。
  34. </p>
  35. <h3>[method:this set]( [param:Float radius], [param:Float theta], [param:Float y] )</h3>
  36. <p>设置该对象的 [page:.radius radius], [page:.theta theta]
  37. 和 [page:.y y] 属性。</p>
  38. <h3>[method:this setFromVector3]( [param:Vector3 vec3] )</h3>
  39. <p>
  40. 从 [page:Vector3 Vector3] 中取x,y,z,并调用setFromCartesianCoords来设置圆柱坐标的
  41. [page:.radius radius]、[page:.theta theta] 和 [page:.y y] 的属性值。
  42. </p>
  43. <h3>[method:this setFromCartesianCoords]( [param:Float x], [param:Float y], [param:Float z] )</h3>
  44. <p>
  45. 使用笛卡尔坐标来设置该圆柱坐标中 [page:.radius radius], [page:.theta theta]
  46. 以及 [page:.y y] 的属性值。
  47. </p>
  48. <h2>源码(Source)</h2>
  49. <p>
  50. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  51. </p>
  52. </body>
  53. </html>