ScriptCore: matrix generator

This commit is contained in:
Simon Lübeß
2024-03-02 13:54:34 +01:00
parent 0a8d83ffb6
commit caaa7646ef
17 changed files with 1529 additions and 42 deletions
+36
View File
@@ -0,0 +1,36 @@
using GlitchyEngine.Math.Attributes;
namespace GlitchyEngine.Math;
/// <summary>
/// A matrix with 2 rows and 2 columns of 32-bit signed integer values.
/// </summary>
[Matrix(typeof(int), 2, 2, "int")]
[MatrixLogic]
[MatrixCast(typeof(float), true)]
[MatrixCast(typeof(uint), true)]
public partial struct int2x2
{
}
/// <summary>
/// A matrix with 3 rows and 3 columns of 32-bit signed integer values.
/// </summary>
[Matrix(typeof(int), 3, 3, "int")]
[MatrixLogic]
[MatrixCast(typeof(float), true)]
[MatrixCast(typeof(uint), true)]
public partial struct int3x3
{
}
/// <summary>
/// A matrix with 4 rows and 4 columns of 32-bit signed integer values.
/// </summary>
[Matrix(typeof(int), 4, 4, "int")]
[MatrixLogic]
[MatrixCast(typeof(float), true)]
[MatrixCast(typeof(uint), true)]
public partial struct int4x4
{
}