using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PCUT.Extensions.Transforms
{
    public class ScaleTransform : SvgTransform
    {
        public double ScaleX { get; private set; }
        public double ScaleY { get; private set; }

        public ScaleTransform(double scaleX, double scaleY)
        {
            ScaleX = scaleX;
            ScaleY = scaleY;
        }

        protected override (double X, double Y) InternalTransform(double x, double y)
        {
            var x1 = ScaleX * x;
            var y1 = ScaleY * y;
            return (x1, y1);
        }
    }
}
