13 lines
411 B
C#
13 lines
411 B
C#
using System.Numerics;
|
|
|
|
namespace SlatedGameToolkit.Framework.Utilities
|
|
{
|
|
public static class MatrixUtils
|
|
{
|
|
public static float[] ToColumnMajorArray(this Matrix4x4 mat) {
|
|
return new float[] {
|
|
mat.M11, mat.M12, mat.M13, mat.M14, mat.M21, mat.M22, mat.M23, mat.M24, mat.M31, mat.M32, mat.M33, mat.M34, mat.M41, mat.M42, mat.M43, mat.M44
|
|
};
|
|
}
|
|
}
|
|
} |