euclid
euclid copied to clipboard
Multi-dimensional scale
We have vectors and we have ScaleFactor, which is 1D. What we are missing is an ability to scale vectors by a non-uniform scale with potential change of space. This would be helpful for code in https://github.com/servo/webrender/pull/3046
Scale2D<T, SrcUnit, DstUni> and Scale3D<T, SrcUnit, DstUnit> would make sense.