コード例 #1
0
        public void CameraManager_ScreenToWorld_XY_ShouldEqualX50Y50()
        {
            const float x      = 50.0f;
            const float y      = 50.0f;
            var         result = _camera.ScreenToWorld(-1130, -570);

            Assert.AreEqual(x, result.X, 0.001f);
            Assert.AreEqual(y, result.Y, 0.001f);
        }