using Azimuth; using Blacklight.SharpDX9.Extensions; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using UnitTestSharp; namespace Blacklight.SharpDX9.UnitTesting { public class MatrixExtensionsTests : TestFixture { public void ToDX() { var matrix = new AffineMatrix( angle: Math.PI/3, position: new Vector(7, 11), scale: new Vector(3, 4)); var expected = new SharpDX.Matrix( 1.5f, -(float)Math.Sqrt(3.0f)/2.0f * 3.0f, 7, 0, (float)Math.Sqrt(3.0f)/2.0f * 4, 2, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0 ); CheckEqual(expected, matrix.ToDX()); } } }