servo / euclid

Geometry primitives (basic linear algebra) for Rust
Other
459 stars 102 forks source link

Multi-dimensional scale #304

Open kvark opened 6 years ago

kvark commented 6 years ago

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

nical commented 6 years ago

Scale2D<T, SrcUnit, DstUni> and Scale3D<T, SrcUnit, DstUnit> would make sense.