More spans

This commit is contained in:
VaDiM
2025-08-11 01:25:42 +03:00
parent 35324083e1
commit 054906a426
6 changed files with 120 additions and 110 deletions
+2 -2
View File
@@ -26,9 +26,9 @@ namespace AssetStudio
public float M23;
public float M33;
public Matrix4x4(float[] values)
public Matrix4x4(Span<float> values)
{
if (values == null)
if (values.IsEmpty)
throw new ArgumentNullException(nameof(values));
if (values.Length != 16)
throw new ArgumentOutOfRangeException(nameof(values), "There must be sixteen and only sixteen input values for Matrix.");