mirror of
https://github.com/aelurum/AssetStudio.git
synced 2026-11-15 19:28:48 -05:00
More spans
This commit is contained in:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user