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 TransformPosition() { var position = new Vector3D(3, 5, 2); var translation = Matrix.CreateTranslation(2, 0, 5); var rotation = Matrix.CreateRotationZYX(0, 90, 0); var scale = Matrix.CreateScale(3, 3, 3); var transformation = scale * rotation * translation; var result = translation * (rotation * (scale * position)); Assert.IsTrue((transformation * position).IsNearlyEqual(result)); }
See Also