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

Core: Add Matrix2 class #1124

Merged
merged 3 commits into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
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
341 changes: 0 additions & 341 deletions types/three/examples/jsm/deprecated/Geometry.d.ts

This file was deleted.

1 change: 1 addition & 0 deletions types/three/src/Three.WebGPU.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export * from "./math/interpolants/LinearInterpolant.js";
export * from "./math/interpolants/QuaternionLinearInterpolant.js";
export * from "./math/Line3.js";
export { MathUtils } from "./math/MathUtils.js";
export * from "./math/Matrix2.js";
export * from "./math/Matrix3.js";
export * from "./math/Matrix4.js";
export * from "./math/Plane.js";
Expand Down
1 change: 1 addition & 0 deletions types/three/src/Three.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export * from "./math/interpolants/LinearInterpolant.js";
export * from "./math/interpolants/QuaternionLinearInterpolant.js";
export * from "./math/Line3.js";
export { MathUtils } from "./math/MathUtils.js";
export * from "./math/Matrix2.js";
export * from "./math/Matrix3.js";
export * from "./math/Matrix4.js";
export * from "./math/Plane.js";
Expand Down
6 changes: 3 additions & 3 deletions types/three/src/core/InterleavedBufferAttribute.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Matrix } from "../math/Matrix3.js";
import { Matrix3 } from "../math/Matrix3.js";
import { Matrix4 } from "../math/Matrix4.js";
import { BufferAttribute, TypedArray } from "./BufferAttribute.js";
import { InterleavedBuffer } from "./InterleavedBuffer.js";
Expand Down Expand Up @@ -84,13 +84,13 @@ export class InterleavedBufferAttribute {
* Applies normal matrix {@link Matrix3 | m} to every Vector3 element of this InterleavedBufferAttribute.
* @param m
*/
applyNormalMatrix(m: Matrix): this;
applyNormalMatrix(m: Matrix3): this;

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

/**
* Returns the given component of the vector at the given index.
Expand Down
Loading
Loading