[name]

构造函数

[name]( [param:InterleavedBuffer interleavedBuffer], [param:Integer itemSize], [param:Integer offset], [param:Boolean normalized] )

属性

[property:InterleavedBuffer data]

传入构造函数的 [page:InterleavedBuffer InterleavedBuffer] 实例。

[property:TypedArray array]

[page:InterleavedBufferAttribute.data data].array 的值。

[property:Integer count]

[page:InterleavedBufferAttribute.data data].count 的值。 所缓存的矢量的个数。如果缓存的矢量是一个三元组(例如,位置、法向量或颜色),则该值计算上述三元组的个数。

[property:Integer itemSize]

队列中每个矢量有多少个元素构成。

[property:String name]

Optional name for this attribute instance. Default is an empty string.

[property:Boolean needsUpdate]

Default is *false*. Setting this to *true* will send the entire interleaved buffer (not just the specific attribute data) to the GPU again.

[property:Boolean normalized]

默认值为 *false*。

[property:Integer offset]

缓存队列中每个元素的起始位置的偏移量。

方法

[method:this applyMatrix4]( [param:Matrix4 m] )

Applies matrix [page:Matrix4 m] to every Vector3 element of this InterleavedBufferAttribute.

[method:this applyNormalMatrix]( [param:Matrix3 m] )

Applies normal matrix [page:Matrix3 m] to every Vector3 element of this InterleavedBufferAttribute.

[method:this transformDirection]( [param:Matrix4 m] )

Applies matrix [page:Matrix4 m] to every Vector3 element of this InterleavedBufferAttribute, interpreting the elements as a direction vectors.

[method:Number getX]( [param:Integer index] )

返回给定索引矢量的第一个元素 (X 值)。

[method:Number getY]( [param:Integer index] )

返回给定索引矢量的第二个元素 (Y 值)。

[method:Number getZ]( [param:Integer index] )

返回给定索引矢量的第三个元素 (Z 值)。

[method:Number getW]( [param:Integer index] )

返回给定索引矢量的第四个元素 (W 值)。

[method:this setX]( [param:Integer index], [param:Float x] )

通过给定参数,设置指定索引矢量的第一个元素 (X 值)。

[method:this setY]( [param:Integer index], [param:Float y] )

通过给定参数,设置指定索引矢量的第二个元素 (Y 值)。

[method:this setZ]( [param:Integer index], [param:Float z] )

通过给定参数,设置指定索引矢量的第三个元素 (Z 值)。

[method:this setW]( [param:Integer index], [param:Float w] )

通过给定参数,设置指定索引矢量的第四个元素 (W 值)。

[method:this setXY]( [param:Integer index], [param:Float x], [param:Float y] )

通过给定参数,设置指定索引矢量的第一、二个元素 (X 和 Y 值)。

[method:this setXYZ]( [param:Integer index], [param:Float x], [param:Float y], [param:Float z] )

通过给定参数,设置指定索引矢量的第一、二、三个元素 (X Y 和 Z 值)。

[method:this setXYZW]( [param:Integer index], [param:Float x], [param:Float y], [param:Float z], [param:Float w] )

通过给定参数,设置指定索引矢量的第一、二、三、四个元素 (X Y Z 和 W 值)。

源代码

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]