Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InterleavedBufferAttribute: Add get / set component functions #774

Merged
merged 1 commit into from
Jan 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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