InterleavedBufferAttribute.html 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. <p class="desc">
  13. </p>
  14. <h2>构造函数</h2>
  15. <h3>[name]( [param:InterleavedBuffer interleavedBuffer], [param:Integer itemSize], [param:Integer offset], [param:Boolean normalized] )</h3>
  16. <p>
  17. </p>
  18. <h2>属性</h2>
  19. <h3>[property:InterleavedBuffer data]</h3>
  20. <p>
  21. 传入构造函数的 [page:InterleavedBuffer InterleavedBuffer] 实例。
  22. </p>
  23. <h3>[property:TypedArray array]</h3>
  24. <p>
  25. [page:InterleavedBufferAttribute.data data].array 的值。
  26. </p>
  27. <h3>[property:Integer count]</h3>
  28. <p>
  29. [page:InterleavedBufferAttribute.data data].count 的值。
  30. 所缓存的矢量的个数。如果缓存的矢量是一个三元组(例如,位置、法向量或颜色),则该值计算上述三元组的个数。
  31. </p>
  32. <h3>[property:Integer itemSize]</h3>
  33. <p>
  34. 队列中每个矢量有多少个元素构成。
  35. </p>
  36. <h3>[property:Integer offset]</h3>
  37. <p>
  38. 缓存队列中每个元素的起始位置的偏移量。
  39. </p>
  40. <h3>[property:Boolean normalized]</h3>
  41. <p>
  42. 默认值为 *false*。
  43. </p>
  44. <h3>[property:Boolean isInterleavedBufferAttribute]</h3>
  45. <p>
  46. 默认值为 *true*。
  47. </p>
  48. <h2>方法</h2>
  49. <h3>[method:Number getX]( [param:Integer index] ) </h3>
  50. <p>返回给定索引矢量的第一个元素 (X 值)。</p>
  51. <h3>[method:Number getY]( [param:Integer index] ) </h3>
  52. <p>返回给定索引矢量的第二个元素 (Y 值)。</p>
  53. <h3>[method:Number getZ]( [param:Integer index] ) </h3>
  54. <p>返回给定索引矢量的第三个元素 (Z 值)。</p>
  55. <h3>[method:Number getW]( [param:Integer index] ) </h3>
  56. <p>返回给定索引矢量的第四个元素 (W 值)。</p>
  57. <h3>[method:null setX]( [param:Integer index], [param:Float x] ) </h3>
  58. <p>通过给定参数,设置指定索引矢量的第一个元素 (X 值)。</p>
  59. <h3>[method:null setY]( [param:Integer index], [param:Float y] ) </h3>
  60. <p>通过给定参数,设置指定索引矢量的第二个元素 (Y 值)。</p>
  61. <h3>[method:null setZ]( [param:Integer index], [param:Float z] ) </h3>
  62. <p>通过给定参数,设置指定索引矢量的第三个元素 (Z 值)。</p>
  63. <h3>[method:null setW]( [param:Integer index], [param:Float w] ) </h3>
  64. <p>通过给定参数,设置指定索引矢量的第四个元素 (W 值)。</p>
  65. <h3>[method:null setXY]( [param:Integer index], [param:Float x], [param:Float y] ) </h3>
  66. <p>通过给定参数,设置指定索引矢量的第一、二个元素 (X 和 Y 值)。</p>
  67. <h3>[method:null setXYZ]( [param:Integer index], [param:Float x], [param:Float y], [param:Float z] ) </h3>
  68. <p>通过给定参数,设置指定索引矢量的第一、二、三个元素 (X Y 和 Z 值)。</p>
  69. <h3>[method:null setXYZW]( [param:Integer index], [param:Float x], [param:Float y], [param:Float z], [param:Float w] ) </h3>
  70. <p>通过给定参数,设置指定索引矢量的第一、二、三、四个元素 (X Y Z 和 W 值)。</p>
  71. <h2>源代码</h2>
  72. <p>
  73. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  74. </p>
  75. </body>
  76. </html>