예제 #1
0
        public void ScaleMultipliesLeavesOriginalUnchanged()
        {
            var vector = new PdfVector(5.2m, 6.9m);

            var scaled = vector.Scale(0.7m);

            Assert.Equal(5.2m, vector.X);
            Assert.Equal(5.2m * 0.7m, scaled.X);

            Assert.Equal(6.9m, vector.Y);
            Assert.Equal(6.9m * 0.7m, scaled.Y);
        }
예제 #2
0
        public void ScaleMultipliesLeavesOriginalUnchanged()
        {
            var vector = new PdfVector(5.2d, 6.9d);

            var scaled = vector.Scale(0.7d);

            Assert.Equal(5.2d, vector.X);
            Assert.Equal(5.2d * 0.7d, scaled.X);

            Assert.Equal(6.9d, vector.Y);
            Assert.Equal(6.9d * 0.7d, scaled.Y);
        }