InterleavedBufferAttribute.html 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <!DOCTYPE html>
  2. <html lang="ar">
  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 class="rtl">
  10. <h1>[name]</h1>
  11. <p class="desc"></p>
  12. <h2>المنشئ (Constructor)</h2>
  13. <h3>[name]( [param:InterleavedBuffer interleavedBuffer], [param:Integer itemSize], [param:Integer offset], [param:Boolean normalized] )</h3>
  14. <h2>الخصائص (Properties)</h2>
  15. <h3>[property:InterleavedBuffer data]</h3>
  16. <p>
  17. نسخة [page:InterleavedBuffer InterleavedBuffer] الممررة في
  18. المُنشئ.
  19. </p>
  20. <h3>[property:TypedArray array]</h3>
  21. <p>قيمة [page:InterleavedBufferAttribute.data data].array.</p>
  22. <h3>[property:Integer count]</h3>
  23. <p>
  24. قيمة [page:InterleavedBufferAttribute.data data].count. إذا كان
  25. المخزن يخزن عنصرًا ثلاثي الأبعاد (مثل الموضع، الطبيعي، أو
  26. اللون)، فسيحسب عدد هذه العناصر المخزنة.
  27. </p>
  28. <h3>[property:Boolean isInterleavedBufferAttribute]</h3>
  29. <p>علامة للقراءة فقط للتحقق مما إذا كان الكائن المعطى هو من نوع [name].</p>
  30. <h3>[property:Integer itemSize]</h3>
  31. <p>كم عدد القيم التي تشكل كل عنصر.</p>
  32. <h3>[property:String name]</h3>
  33. <p>
  34. اسم اختياري لهذه الحالة من السمة. الافتراضي هو سلسلة فارغة.
  35. </p>
  36. <h3>[property:Boolean needsUpdate]</h3>
  37. <p>
  38. الافتراضي هو `false`. تعيين هذا إلى `true` سيرسل المخزن المتداخل
  39. بأكمله (وليس فقط بيانات السمة المحددة) إلى GPU مرة أخرى.
  40. </p>
  41. <h3>[property:Boolean normalized]</h3>
  42. <p>الافتراضي هو `false`.</p>
  43. <h3>[property:Integer offset]</h3>
  44. <p>الإزاحة في المصفوفة الأساسية حيث يبدأ عنصر.</p>
  45. <h2>الوظائف (Methods)</h2>
  46. <h3>[method:this applyMatrix4]( [param:Matrix4 m] )</h3>
  47. <p>
  48. يطبق مصفوفة [page:Matrix4 m] على كل عنصر Vector3 من هذه
  49. InterleavedBufferAttribute.
  50. </p>
  51. <h3>[method:this applyNormalMatrix]( [param:Matrix3 m] )</h3>
  52. <p>
  53. يطبق مصفوفة الطبيعي [page:Matrix3 m] على كل عنصر Vector3 من هذه
  54. InterleavedBufferAttribute.
  55. </p>
  56. <h3>[method:this transformDirection]( [param:Matrix4 m] )</h3>
  57. <p>
  58. يطبق مصفوفة [page:Matrix4 m] على كل عنصر Vector3 من هذه
  59. InterleavedBufferAttribute، تفسير العناصر كمتجهات اتجاه.
  60. </p>
  61. <h3>[method:Number getX]( [param:Integer index] )</h3>
  62. <p>يعيد مكون x للعنصر في المؤشر المعطى.</p>
  63. <h3>[method:Number getY]( [param:Integer index] )</h3>
  64. <p>يعيد مكون y للعنصر في المؤشر المعطى.</p>
  65. <h3>[method:Number getZ]( [param:Integer index] )</h3>
  66. <p>يعيد مكون z للعنصر في المؤشر المعطى.</p>
  67. <h3>[method:Number getW]( [param:Integer index] )</h3>
  68. <p>يعيد مكون w للعنصر في المؤشر المعطى.</p>
  69. <h3>[method:this setX]( [param:Integer index], [param:Float x] )</h3>
  70. <p>يضبط مكون x للعنصر في المؤشر المعطى.</p>
  71. <h3>[method:this setY]( [param:Integer index], [param:Float y] )</h3>
  72. <p>يضبط مكون y للعنصر في المؤشر المعطى.</p>
  73. <h3>[method:this setZ]( [param:Integer index], [param:Float z] )</h3>
  74. <p>يضبط مكون z للعنصر في المؤشر المعطى.</p>
  75. <h3>[method:this setW]( [param:Integer index], [param:Float w] )</h3>
  76. <p>يضبط مكون w للعنصر في المؤشر المعطى.</p>
  77. <h3>[method:this setXY]( [param:Integer index], [param:Float x], [param:Float y] )</h3>
  78. <p>يضبط مكونات x و y للعنصر في المؤشر المعطى.</p>
  79. <h3>[method:this setXYZ]( [param:Integer index], [param:Float x], [param:Float y], [param:Float z] )</h3>
  80. <p>يضبط مكونات x و y و z للعنصر في المؤشر المعطى.</p>
  81. <h3>[method:this setXYZW]( [param:Integer index], [param:Float x], [param:Float y], [param:Float z], [param:Float w] )</h3>
  82. <p>يضبط مكونات x و y و z و w للعنصر في المؤشر المعطى.</p>
  83. <h2>المصدر (Source)</h2>
  84. <p>
  85. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  86. </p>
  87. </body>
  88. </html>