Skip to content

Commit 313b561

Browse files
committed
feat: properties for accessing values
1 parent a6ed2e5 commit 313b561

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

managed/CounterStrikeSharp.API/Modules/Utils/matrix3x4_t.cs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,30 @@ namespace CounterStrikeSharp.API.Modules.Utils;
2121
public partial class matrix3x4_t : NativeObject
2222
{
2323
public unsafe ref float this[int row, int column] => ref Unsafe.Add(ref *(float*)Handle, row * 4 + column);
24+
25+
public float M00 => this[0, 0];
26+
27+
public float M01 => this[0, 1];
28+
29+
public float M02 => this[0, 2];
30+
31+
public float M03 => this[0, 3];
32+
33+
public float M10 => this[1, 0];
34+
35+
public float M11 => this[1, 1];
36+
37+
public float M12 => this[1, 2];
38+
39+
public float M13 => this[1, 3];
40+
41+
public float M20 => this[2, 0];
42+
43+
public float M21 => this[2, 1];
44+
45+
public float M22 => this[2, 2];
46+
47+
public float M23 => this[2, 3];
2448

2549
public matrix3x4_t(IntPtr pointer) : base(pointer)
2650
{

0 commit comments

Comments
 (0)