Skip to content

Commit 9fe85c7

Browse files
authored
Core: Add Matrix2 class (#1124)
* Cleanup existing Matrix classes * Updates * Revamp array methods
1 parent cf8707e commit 9fe85c7

File tree

7 files changed

+151
-542
lines changed

7 files changed

+151
-542
lines changed

types/three/examples/jsm/deprecated/Geometry.d.ts

Lines changed: 0 additions & 341 deletions
This file was deleted.

types/three/src/Three.WebGPU.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ export * from "./math/interpolants/LinearInterpolant.js";
104104
export * from "./math/interpolants/QuaternionLinearInterpolant.js";
105105
export * from "./math/Line3.js";
106106
export { MathUtils } from "./math/MathUtils.js";
107+
export * from "./math/Matrix2.js";
107108
export * from "./math/Matrix3.js";
108109
export * from "./math/Matrix4.js";
109110
export * from "./math/Plane.js";

types/three/src/Three.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ export * from "./math/interpolants/LinearInterpolant.js";
104104
export * from "./math/interpolants/QuaternionLinearInterpolant.js";
105105
export * from "./math/Line3.js";
106106
export { MathUtils } from "./math/MathUtils.js";
107+
export * from "./math/Matrix2.js";
107108
export * from "./math/Matrix3.js";
108109
export * from "./math/Matrix4.js";
109110
export * from "./math/Plane.js";

types/three/src/core/InterleavedBufferAttribute.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Matrix } from "../math/Matrix3.js";
1+
import { Matrix3 } from "../math/Matrix3.js";
22
import { Matrix4 } from "../math/Matrix4.js";
33
import { BufferAttribute, TypedArray } from "./BufferAttribute.js";
44
import { InterleavedBuffer } from "./InterleavedBuffer.js";
@@ -84,13 +84,13 @@ export class InterleavedBufferAttribute {
8484
* Applies normal matrix {@link Matrix3 | m} to every Vector3 element of this InterleavedBufferAttribute.
8585
* @param m
8686
*/
87-
applyNormalMatrix(m: Matrix): this;
87+
applyNormalMatrix(m: Matrix3): this;
8888

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

9595
/**
9696
* Returns the given component of the vector at the given index.

0 commit comments

Comments
 (0)