コード例 #1
0
        public void TryTransform()
        {
            var point     = new Point(-10, 1.5);
            var transform = new ScaleTransform {
                ScaleX = 100, ScaleY = 2
            };
            var result = transform.TryTransform(point, out var outPoint);

            result.Should().BeTrue();
            outPoint.X.Should().Be(-1000);
            outPoint.Y.Should().Be(3);
        }