public static Matrix4x4 MatrixFromAssimp(Assimp.Matrix4x4 assimpMatrix) { return(new Matrix4x4( assimpMatrix.A1, assimpMatrix.A2, assimpMatrix.A3, assimpMatrix.A4, assimpMatrix.B1, assimpMatrix.B2, assimpMatrix.B3, assimpMatrix.B4, assimpMatrix.C1, assimpMatrix.C2, assimpMatrix.C3, assimpMatrix.C4, assimpMatrix.D1, assimpMatrix.D2, assimpMatrix.D3, assimpMatrix.D4)); }
private Matrix4x4 AssMatrixToEmoMatrix(Assimp.Matrix4x4 assMat) { return(new Matrix4x4( assMat.A1, assMat.B1, assMat.C1, assMat.D1, assMat.A2, assMat.B2, assMat.C2, assMat.D2, assMat.A3, assMat.B3, assMat.C3, assMat.D3, assMat.A4, assMat.B4, assMat.C4, assMat.D4)); }
private static Matrix4x4 FromMatrix(Assimp.Matrix4x4 mat) { return(new Matrix4x4 { M11 = mat.A1, M12 = mat.A2, M13 = mat.A3, M14 = mat.A4, M21 = mat.B1, M22 = mat.B2, M23 = mat.B3, M24 = mat.B4, M31 = mat.C1, M32 = mat.C2, M33 = mat.C3, M34 = mat.C4, M41 = mat.D1, M42 = mat.D2, M43 = mat.D3, M44 = mat.D4 }); }
public static unsafe Matrix4x4 ToNumMatrix4x4(this Assimp.Matrix4x4 self) { return(*(Matrix4x4 *)(&self)); }
private static float[] ToMatrix4x4Array(this Assimp.Matrix4x4 matrix) => new[] { matrix[1, 1], matrix[1, 2], matrix[1, 3], matrix[1, 4], matrix[2, 1], matrix[2, 2], matrix[2, 3], matrix[2, 4], matrix[3, 1], matrix[3, 2], matrix[3, 3], matrix[3, 4], matrix[4, 1], matrix[4, 2], matrix[4, 3], matrix[4, 4] };
// ReSharper disable InconsistentNaming private static Matrix4x4 ToMatrix4x4(this Assimp.Matrix4x4 matrix) => new Matrix4x4(matrix[1, 1], matrix[1, 2], matrix[1, 3], matrix[1, 4], matrix[2, 1], matrix[2, 2], matrix[2, 3], matrix[2, 4], matrix[3, 1], matrix[3, 2], matrix[3, 3], matrix[3, 4], matrix[4, 1], matrix[4, 2], matrix[4, 3], matrix[4, 4]);