using Avalonia.VisualTree;

namespace Avalonia.Media.Immutable
{
    /// <summary>
    /// Represents a transform on an <see cref="IVisual"/>.
    /// </summary>
    public class ImmutableTransform : ITransform
    {
        public Matrix Value { get; }

        /// <summary>
        /// Initializes a new instance of the <see cref="ImmutableTransform"/> class.
        /// </summary>
        /// <param name="matrix">The transform matrix.</param>
        public ImmutableTransform(Matrix matrix)
        {
            Value = matrix;
        }
    }
}
