Namespace: DeltaEngine.Tests.Datatypes
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test] public void CreateFromAxisAngle() { var invTwoSqr = MathExtensions.InvSqrt(2); var matrix2 = new Matrix(invTwoSqr, 0, -invTwoSqr, 0, 0, 1, 0, 0, invTwoSqr, 0, invTwoSqr, 0, 0, 0, 0, 1); var axis = new Vector3D(0, 1, 0); const float Angle = 45.0f; Assert.AreEqual(Matrix.Identity, Matrix.FromAxisAngle(axis, 0.0f)); Assert.AreEqual(matrix2, Matrix.FromAxisAngle(axis, Angle)); }
See Also