Added createTranslation

This commit is contained in:
zyb3rwolfi 2025-10-03 12:25:23 +01:00
parent 78b2d5dbb7
commit 315273e0ec

View File

@ -62,12 +62,20 @@ public class MyMatrix
public static MyMatrix CreateIdentity() 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) 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) public static MyMatrix CreateScale(MyVector pScale)