public void Test_TransformScale() { DrawableAffine affine = new DrawableAffine(); affine.TransformScale(4.0, 2.0); Assert.Equal(4.0, affine.ScaleX); Assert.Equal(2.0, affine.ScaleY); Assert.Equal(0.0, affine.ShearX); Assert.Equal(0.0, affine.ShearY); Assert.Equal(0.0, affine.TranslateX); Assert.Equal(0.0, affine.TranslateY); }
public void ShouldSetThePropertiesToTheCorrectValue() { var affine = new DrawableAffine(); affine.TransformScale(4.0, 2.0); Assert.Equal(4.0, affine.ScaleX); Assert.Equal(2.0, affine.ScaleY); Assert.Equal(0.0, affine.ShearX); Assert.Equal(0.0, affine.ShearY); Assert.Equal(0.0, affine.TranslateX); Assert.Equal(0.0, affine.TranslateY); }
public void Scale(double x, double y) { affineMatrix.TransformScale(x, y); }