2
0

Cylindrical.html 2.2 KB

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