Skip to content

Commit

Permalink
InterleavedBufferAttribute: Add get / set component functions (#774)
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 authored Jan 23, 2024
1 parent 5004c12 commit 059d100
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions types/three/src/core/InterleavedBufferAttribute.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,23 @@ export class InterleavedBufferAttribute {
* Applies normal matrix {@link Matrix3 | m} to every Vector3 element of this InterleavedBufferAttribute.
* @param m
*/
applyNormalMatrix(matrix: Matrix): this;
applyNormalMatrix(m: Matrix): this;

/**
* Applies matrix {@link Matrix4 | m} to every Vector3 element of this InterleavedBufferAttribute, interpreting the elements as a direction vectors.
* @param m
*/
transformDirection(matrix: Matrix): this;
transformDirection(m: Matrix): this;

/**
* Returns the given component of the vector at the given index.
*/
getComponent(index: number, component: number): number;

/**
* Sets the given component of the vector at the given index.
*/
setComponent(index: number, component: number, value: number): this;

/**
* Returns the x component of the item at the given index.
Expand Down

0 comments on commit 059d100

Please sign in to comment.