From 315273e0ec1f8ad16922c775a6afb15e9175d37d Mon Sep 17 00:00:00 2001 From: zyb3rwolfi Date: Fri, 3 Oct 2025 12:25:23 +0100 Subject: [PATCH] Added createTranslation --- TheRepo/TheLabs/MyMatrix.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/TheRepo/TheLabs/MyMatrix.cs b/TheRepo/TheLabs/MyMatrix.cs index c67ea6b..c2528e6 100644 --- a/TheRepo/TheLabs/MyMatrix.cs +++ b/TheRepo/TheLabs/MyMatrix.cs @@ -62,12 +62,20 @@ public class MyMatrix public static MyMatrix CreateIdentity() { - return null; + return new MyMatrix( + 1, 0, 0, 0, + 0, 1, 0, 0, + 0, 0, 1, 0, + 0, 0, 0, 1 + ); } public static MyMatrix CreateTranslation(MyVector pTranslation) { - return null; + return new MyMatrix(1f, 0f, 0f, 0f, + 0f, 1f, 0f, 0f, + 0f, 0f, 1f, 0f, + pTranslation.X, pTranslation.Y, pTranslation.Z, 1f); } public static MyMatrix CreateScale(MyVector pScale)