Skip to content

Commit dece206

Browse files
committed
refactor: Update Matrix import to Matrix2D for consistency across touchpad and matrix tests
1 parent 2c44f8b commit dece206

File tree

2 files changed

+48
-48
lines changed

2 files changed

+48
-48
lines changed

src/core/input/touchpad/TouchpadDevice.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Matrix } from "@/core/math/geometry/Matrix2D";
1+
import { Matrix2D } from "@/core/math/geometry/Matrix2D";
22
import { Vector2D } from "@/core/math/geometry/Vector2D";
33
import { Input, Pointer } from "@/core/input/Input";
44
import { SwipeInput, SwipeInputType, ofAngle } from "@/core/input/touchpad/SwipeInput";
@@ -40,7 +40,7 @@ export class TouchpadDevice {
4040
state.previous = state.current;
4141

4242
if (state.current) {
43-
const swipe = Matrix.reflectY(position.current.subtract(position.previous));
43+
const swipe = Matrix2D.reflectY(position.current.subtract(position.previous));
4444
const angle = swipe.heading();
4545

4646
const input = this.touchpad.get(ofAngle(angle)) as Input;

0 commit comments

Comments
 (0)