[name]

Constructor

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

Properties

[property:InterleavedBuffer data]

The [page:InterleavedBuffer InterleavedBuffer] instance passed in the constructor.

[property:TypedArray array]

The value of [page:InterleavedBufferAttribute.data data].array.

[property:Integer count]

The value of [page:InterleavedBufferAttribute.data data].count. If the buffer is storing a 3-component item (such as a position, normal, or color), then this will count the number of such items stored.

[property:Integer itemSize]

How many values make up each item.

[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]

Default is *false*.

[property:Integer offset]

The offset in the underlying array buffer where an item starts.

Methods

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

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

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

Returns the x component of the item at the given index.

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

Returns the y component of the item at the given index.

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

Returns the z component of the item at the given index.

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

Returns the w component of the item at the given index.

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

Sets the x component of the item at the given index.

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

Sets the y component of the item at the given index.

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

Sets the z component of the item at the given index.

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

Sets the w component of the item at the given index.

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

Sets the x and y components of the item at the given index.

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

Sets the x, y and z components of the item at the given index.

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

Sets the x, y, z and w components of the item at the given index.

Source

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