Skip to content

Commit

Permalink
Core: Add Matrix2 class (#1124)
Browse files Browse the repository at this point in the history
* Cleanup existing Matrix classes

* Updates

* Revamp array methods
  • Loading branch information
Methuselah96 committed Jul 23, 2024
1 parent cf8707e commit 9fe85c7
Show file tree
Hide file tree
Showing 7 changed files with 151 additions and 542 deletions.
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

0 comments on commit 9fe85c7

Please sign in to comment.