ScaleTransform
Represents the scale3d transformation.
namespace AngleSharp.Css.Values
{
internal sealed class ScaleTransform : ITransform
{
private readonly float _sx;
private readonly float _sy;
private readonly float _sz;
internal ScaleTransform(float sx, float sy, float sz)
{
_sx = sx;
_sy = sy;
_sz = sz;
}
public TransformMatrix ComputeMatrix()
{
return new TransformMatrix(_sx, 0, 0, 0, _sy, 0, 0, 0, _sz, 0, 0, 0, 0, 0, 0);
}
}
}