public void MatrixSetY() { var resolution = new TestResolutionAdapter(); resolution.SetVirtualResolution(100, 50); resolution.RecreateScaleMatrix(new Point(200, 25)); //check scale matrix resolution.ScreenMatrix.M22.ShouldBe(2.0f); }
public void TransformY() { var resolution = new TestResolutionAdapter(); resolution.SetVirtualResolution(100, 50); resolution.RecreateScaleMatrix(new Point(200, 25)); Vector2 trans = resolution.ScreenToGameCoord(new Vector2(1000.0f, 1000.0f)); //check scale matrix trans.Y.ShouldBe(2000.0f); }