using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Storage;
using Microsoft.Xna.Framework.Content;

namespace Ika.Graphics
{
    public class MatrixDecomposition
    {
        public Vector3 Scale;
        public Quaternion Rotation;
        public Vector3 Translatation;
        public float ScalarScale;

        public MatrixDecomposition(Matrix matrix)
        {
            matrix.Decompose(out Scale, out Rotation, out Translatation);
            ScalarScale = MathHelper.Max(Scale.X, MathHelper.Max(Scale.Y, Scale.Z));
        }
    }
}